HosipLan

Untitled

Mar 19th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. // Setup router
  2. $container->router[] = $admin = new RouteList('Admin');
  3. $admin[] = new Route('admin/<presenter>/<action>', 'SignIn:default');
  4.  
  5. $callback = new PageRouteCallback($container->database);
  6. $container->router[] = $front = new RouteList('Front');
  7. $front[] = new Route('[<page>]', array(
  8.     'presenter' => 'Page',
  9.     'action' => 'default',
  10.     'page' => $callback->getCallbacks()
  11. ));
Advertisement
Add Comment
Please, Sign In to add comment