daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ));
RAW Paste Data
Top