How to change the Way of Route on Modules

Notice: This thread is very old.
joao_neto
Member | 1
+
0
-

Hello.

I've created a module on my App like this:

app/
   LoggedAreaModule/
      presenters/
         LoggedAreaPresenter.php
         ProfilePresenter.php

And i need to create a more logical routes to this module, like:
n:url="LoggedArea:Profile:update" to be a url="logged-area/profile/update" or
<module>/<presenter>/<action>

But the Nette Route aways use another way to create the urls, something like this:

logged-area.profile/update

This URL is not a best way to make my App, because this point does not make much sense.

Any one have this problem too and can give me a way to solve this URL pattern?

Last edited by joao_neto (2013-12-11 18:24)

jiri.pudil
Nette Blogger | 1029
+
0
-

Have you tried the route mask you posted (<module>/<presenter>/<action>)? Also, routes are checked in the order you write them in the code and the first one that matches is used. So this one with module should be placed before more generic ones like <presenter>/<action>/[<id>].