php - "cannot assemble. reversed route is not specified" -


I had a problem with error from Zend Framework 1.9, when the router for friendly URL was created. The error was incorrect:

can not be collected, the specified path is not specified

The solution was not so easy to find, so I want to share if someone will struggle with me

As he wrote in the Zend Manual:" Since the Rex Patterns are not easily reversed, if you have to collect url helper or a method of this class then you The reverse url must be generated.The path is represented by the parrot by sprintf () and it is defined as the fourth construction parameter: "

  $ route = new Zend_Controller_Router_Route_Regex ('archive / (\ D +) ', array (..), array (' year '=> 1,' archive /% s');  

So basically you have to do this

  'archive /% s'  

line is to be added Your router parameter

I found a solution in this thread


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -