Wrong Zend Route Relative Path

My routes work fine when I am in an action that requires a parameter. For example, they work fine:

/news
/news/admin
/news/admin/add

But this is not so:

/news/admin/edit/1

But only routes using the default route are not displayed correctly (they are displayed as .. /../module/controller), all other routes are displayed correctly (/ module / conntroller)

Any ideas why, or how to fix it?

0
source share
2 answers

This is a common problem.

If you use custom routes in your navigation, you must explicitly pass the default route to the Zend_Navigation and url () pages.

, Zend_Navigation

0

, :

/news/admin/edit/id/1

/param/.

0

Source: https://habr.com/ru/post/1763289/


All Articles