Advertisement
Guest User

bootstrap

a guest
Jun 16th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1.  
  2. Route::set('admin', 'admin(/<controller>(/<action>(/<id>)))')
  3.             ->defaults(array(
  4.             'directory'  => 'admin',
  5.             'controller' => 'main',
  6.             'action'     => 'index',
  7.             ));
  8.  Route::set('chat', 'chat/<id>', array('id' => '.+'))
  9.     ->defaults(array(
  10.         'controller' => 'chat',
  11.         'action'     => 'index',       
  12.     ));        
  13. Route::set('comments', 'comments/<id>', array('id' => '.+'))
  14.     ->defaults(array(
  15.         'controller' => 'comments',
  16.         'action'     => 'index',       
  17.     ));
  18. Route::set('articles', '<articles>/<id>-<artname>', array('id' => '[0-9]+'), array('artname' => '.+'))
  19.     ->defaults(array(
  20.         'controller' => 'articles',
  21.         'action'     => 'article',     
  22.     ));
  23.    
  24. Route::set('static', '<action>(/<id>)', array('action' => 'about|contacts'))
  25.         ->defaults(array(
  26.             'controller' => 'static',
  27.     ));
  28.  
  29. Route::set('default', '(<controller>(/<action>(/<id>)))')
  30.     ->defaults(array(
  31.         'controller' => 'page',
  32.         'action'     => 'index',
  33.     ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement