Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. // single items
  2. Route::set('library', 'content/library/(<controller>(/<id>(-<slug>)(/<action>)))',
  3. array('id'=>'[0-9]+', 'slug'=>'.[^/]+', 'action' => 'index|edit|download'))
  4. ->defaults(array(
  5.             'directory'  => 'content/library',
  6.             'controller' => 'releases',
  7.             'action' => 'index',
  8. ));
  9.  
  10. // browsing / listing
  11. Route::set('library', 'content/library/(<action>)',
  12. array('action' => 'releases|labels'))
  13. ->defaults(array(
  14.             'directory'  => 'content/library',
  15.             'controller' => 'browse',
  16.             'action' => 'nothing',
  17. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement