I seem to have a problem with the regex route and assembling urls with the
redirector helper.
<!-- Paste route (/123) -->
<paste>
    <type>Zend_Controller_Router_Route_Regex</type>
    <route>(\d+)</route>
    <defaults>
        <module>default</module>
        <controller>index</controller>
        <action>view</action>
    </defaults>
    <map>
        <id>1</id>
    </map>
    <reverse>%s</reverse>
</paste>

Where id = (integer)
$this->getHelper('Redirector')->gotoRoute(array('id' => 1), 'paste', true);
does not work
$this->getHelper('Redirector')->gotoRoute(array($id), 'paste', true); does
work


-- 
View this message in context: 
http://www.nabble.com/Regex-route-and-url-assembling-tf4164403s16154.html#a11848685
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to