How do you debug routing when $presenter->link generates unexpected result?

5 years ago

petr.pavel
Backer | 492
+
0
-

Debug bar with all routes and “yes/may” is great (although could be better) but what if I need the other direction? PresenterRequest to url, rather than url to PresenterRequest. So far I've been debugging RouteList and Route but it's very time consuming.

My application has modules, subdomains and heavily customized URLs, and it's hard to get things right.

Any suggestions?

5 years ago

petr.pavel
Backer | 492
+
0
-

I'd like to bump this question as I'm facing the same problem again. Debugging Route->constructUrl() is painful. How do you guys do it that you don't need any debug panel?

It would be great if Route->constructUrl() could report reasons for failing.