Convert Zend_Rest_Route code to handle 2 params?

Routes in my Bootstrap are as follows: ReWrite Rules and Routes */ protected function _initRoutes() { $router = Zend_Controller_Front::getInstance ()->getRouter (); $router->addRoute('rest_url', new Zend_Controller_Router_Route('version/:param1/:param2/', array( 'module'=>'ModuleName', 'controller' => 'ControllerName', 'action' => 'ActionName', 'param1' => 'default here if you want', 'param2' => 'can leave param1 and param2 blank here'))); } This is the way I've always had routes working.

Routes in my Bootstrap are as follows: /* * ReWrite Rules and Routes */ protected function _initRoutes() { $router = Zend_Controller_Front::getInstance ()->getRouter (); $router->addRoute('rest_url', new Zend_Controller_Router_Route('version/:param1/:param2/', array( 'module'=>'ModuleName', 'controller' => 'ControllerName', 'action' => 'ActionName', 'param1' => 'default here if you want', 'param2' => 'can leave param1 and param2 blank here'))); } This is the way I've always had routes working.

Zend_Rest_Route does not support more than one rewritten parameter (e.g. /version/:id). You'll have to write a custom route to handle this in your Rest implementation.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions