I've Also tried using the third parameter of Zend_Controller_Router_Route_Regex,
 to map the variable name

$route = new Zend_Controller_Router_Route_Regex(
 [...],
 [...],
 array(
  1 => 'myvar'
 ))
$router->addRoute('myregexroute', $route);

then in a view script


$this->url(array('myvar'' => $myparam),'myregexroute');



Same error.


Sergio Rinaudo


From: kaiohken1...@hotmail.com
To: fw-general@lists.zend.com
Date: Tue, 28 Jul 2009 15:14:40 +0200
Subject: [fw-general] Using url() view helper with regex route








Dear list, 
I am using some regexRoutes and I need to use the url view helper.
Unfortunatelly, I get this error:

"Cannot assemble. Reversed route is not specified."

I don't have any problem with normal routes.
This is an example of the code I use:

$this->url(array('1' => $myparam),'myregexroute')

and I tried also with


$this->url(array($myparam),'myregexroute')

and



$this->url(1 => array($myparam),'myregexroute')



Any advices?

Many thanks


Sergio Rinaudo


Solo con Messenger, nuovi gadget gratuiti per te. Vieni a scoprirli!
_________________________________________________________________
Con Windows Live, puoi organizzare, modificare e condividere le tue foto.
http://www.microsoft.com/italy/windows/windowslive/products/photo-gallery-edit.aspx

Reply via email to