Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // set up a simple "hello world" routing
- $di->get('router_map')->add('home', '/', array(
- 'values' => array(
- 'controller' => 'hello',
- 'action' => 'world',
- ),
- ));
- // map the 'hello_world' controller value a particular class
- $di->params['Aura\Web\ControllerFactory']['map']['hello'] = 'Aura\Framework\Web\Hello\Page';
Add Comment
Please, Sign In to add comment