Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* ----- snip (omitting everything already in config/bootstrap/action.php) ----- */
- /**
- * Filter to capture any admin-specific requests
- * This simply updates the internal action name for dispatching purposes. In order for this to
- * properly work across the board, you'll need to enable a persistent param for `admin` in your
- * routes configuration. Something to the effect of the following will do nicely:
- *
- * {{{
- * Router::connect(
- * '/admin/{:controller}/{:action}/{:args}',
- * array('admin' => true),
- * array('persist' => array('admin', 'controller'))
- * );
- * }}}
- */
- Dispatcher::config(array(
- 'rules' => array('admin' => array('action' => 'admin_{:action}'))
- ));
Add Comment
Please, Sign In to add comment