PHP Classes

File: apps/routes/routes.php

Recommend this page to a friend!
  Packages of fathurrahman   mnTemplate   apps/routes/routes.php   Download  
File: apps/routes/routes.php
Role: Example script
Content type: text/plain
Description: Example script
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 3 years ago
Size: 465 bytes
 

 

Contents

Class file image Download
<?php
    $routes = [];
    $true_url = '';
    // contoh penggunaan route, route bisa dimatikan di config
    Route::get('admin/home/:ad', function ($params) {
        $controller =& core();
        $data = array(
            'resource' => array('main', 'dore'),
            'content' => array('hello'),
            'pageName' => 'Hallo, Selamat Datang'
        );
        $controller->addViews('template/admin_dore', $data);
        $controller->render();
    });