Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // bootstrap
- public function _initRoute(){
- $router = Zend_Controller_Front::getInstance()->getRouter();
- $route_test = new Zend_Controller_Router_Route(
- '/:id/:seo',
- array(
- 'controller' => 'flats',
- 'action' => 'view',
- 'id' => 0
- )
- );
- $router->addRoute('test', $route_test);
- }
- // Controller flats, view action
- $id = $this->getRequest()->getParam('id');
- ?>
- // View
- <a href="<?php $this->url(array('id'=>'1', 'seo'=>'blabla.html'), 'test'); ?>">link</a>
Advertisement
Add Comment
Please, Sign In to add comment