
Untitled
By: a guest on
May 17th, 2012 | syntax:
None | size: 0.69 KB | hits: 15 | expires: Never
Zend URL Parameter - Hide Key and Show Value
protected function _initRoutes()
{
$this->bootstrap('frontController');
$frontController = $this->getResource('frontController');
$router = $frontController->getRouter();
$router->addRoute(
'name_for_the_route',
new Zend_Controller_Router_Route('controller/action/:key1/:key2/:key3', array('module' => 'default', 'controller' => 'theController', 'action' => 'theAction', 'key1' => NULL, 'key2' => NULL, 'key3' => NULL))
);
}
$key1 = $this->_request->getParam('key1');
$key2 = $this->_request->getParam('key2');
$key3 = $this->_request->getParam('key3');
$numericArray = array_values($this->_request->getParams());