You need to read a little ZF Routes . But basically you need to add something similar to your Bootstrap.php:
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))
);
}
NULL provides default values.
Then in your controller you will do something like this:
$key1 = $this->_request->getParam('key1');
$key2 = $this->_request->getParam('key2');
$key3 = $this->_request->getParam('key3');
getParams, .
PHP array_values () , :
$numericArray = array_values($this->_request->getParams());
, , , URI / . , , , - - , , URI, .