I have Zend code from http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/ which looks like this:
$this->bootstrap('Request');
$front = $this->getResource('FrontController');
$restRoute = new Zend_Rest_Route($front, array(), array(
'default' => array('version')
));
$front->getRouter()->addRoute('rest', $restRoute);
I'm trying to implment something like as specified here: http://wdvl.com/Authoring/PHP/Zend_Routes/Jason_Gilmore04282010.html
and have the system respond on a url such as:
www.site.com/version/param1/param2
How can I change the working code above to do 2 params? I WILL be implementing other commands such as: /retrieve/, /put/, etc.