Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- public static $routes = array(
- array(
- ':controller/:action', //the route
- array( //array of defaults for named parts of the route
- 'controller' => 'test',
- 'action' => '123'
- ),
- array( //array for expressions for named parts
- 'controller' => '[a-zA-Z0-9_\-]+',
- 'action' => '[a-zA-Z0-0_\-]+'
- ))
- );
- ?>
Add Comment
Please, Sign In to add comment