Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'news' => array(
- 'type' => 'Segment',
- 'options' => array(
- 'route' => '/news[/:id]',
- 'constraints' => array(
- 'id' => '[0-9]+',
- ),
- 'defaults' => array(
- 'controller' => 'ApplicationControllerNews',
- 'action' => 'index',
- ),
- ),
- 'may_terminate' => true,
- 'child_routes' => array(
- 'allnews' => array(
- 'type' => 'Segment',
- 'options' => array(
- 'route' => '[/:action[/:tab[/:page]]]',
- 'constraints' => array(
- 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
- 'tab' => '[0-9]+',
- 'page' => '[0-9]+',
- ),
- 'defaults' => array(
- 'controller' => 'ApplicationControllerNews',
- 'action' => 'all',
- 'tab' => 1,
- 'page' => 1,
- ),
- ),
- ),
- ),
- ),
- /news/2
- /news/all/2/5
- $this->url('news/allnews', array('action' => 'all', 'tab' => '1', 'page' => '1'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement