Hi Gerry

> Probably a stupid question but on our site we have some routes that say
> 
> http://site/article/view/id/1
> 
> in 0.1.5 I created a route in the bootstrap file for every extra
> parameter I wanted to your and got them wuth the _getParam() function of
> the action
> but we recently upgraded to 0.8.0 and this isn't working anymore.

try it inside your action method with:
$this->getRequest()->getParam('id');

> Do we still need to put every route we need (for different $_GET
> variables) in the bootstrapfile or is there an easier way to get these
> extra variables?

Never heard of that.
Everything that follows the http://site/controller/action/ is defined as a 
parameter, so e.g., you could use:

http://site/controller/action/id/1/name/gerry

$id = $this->getRequest()->getParam('id');
$name = $this->getRequest()->getParam('name');


cheers,
Philip

Reply via email to