Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // single items
- Route::set('library', 'content/library/(<controller>(/<id>(-<slug>)(/<action>)))',
- array('id'=>'[0-9]+', 'slug'=>'.[^/]+', 'action' => 'index|edit|download'))
- ->defaults(array(
- 'directory' => 'content/library',
- 'controller' => 'releases',
- 'action' => 'index',
- ));
- // browsing / listing
- Route::set('library', 'content/library/(<action>)',
- array('action' => 'releases|labels'))
- ->defaults(array(
- 'directory' => 'content/library',
- 'controller' => 'browse',
- 'action' => 'nothing',
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement