daily pastebin goal
54%
SHARE
TWEET

bootstrap

a guest Jun 16th, 2013 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         ));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top