PHP Classes
elePHPant
Icontem

File: routes.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rocklviv  >  Router  >  routes.php  >  Download  
File: routes.php
Role: Configuration script
Content type: text/plain
Description: Routes list
Class: Router
Route request to controller based on the URL
Author: By
Last change:
Date: 1 year ago
Size: 921 bytes
 

Contents

Class file image Download
<?php
$leo_routes
= array(
   
'/' => array( // Default controller
       
'controller' => 'welcome',
       
'method' => 'index',
       
'number' => 'id',
       
'param' => 'opt_param'
   
),
   
'admin/index' => array(
       
'controller' => 'admin',
       
'method' => 'index',
       
'number' => 'id',
       
'param' => 'opt_param'
   
),
   
'admin/page' => array(
       
'controller' => 'admin',
       
'method' => 'page',
       
'number' => 'id',
       
'param' => 'opt_param'
   
),
   
'admin/authService' => array(
       
'controller' => 'admin',
       
'method' => 'authService',
       
'number' => 'id',
       
'param' => 'opt_param'
   
),
   
'admin' => array(
       
'controller' => 'admin',
       
'method' => 'index',
       
'number' => 'id',
       
'param' => 'opt_param'
   
),
   
'welcome/index' => array(
       
'controller' => 'welcome',
       
'method' => 'index',
       
'number' => 'id',
       
'param' => 'opt_param'
   
),
 
'error404' => array(
   
'controller' => 'errors',
   
'method' => 'error404'
 
)
);