Shekar C Reddy wrote:

Excellent! What's the solution to use the old router (not RewriteRouter)?

Module awareness in the old basic router cannot be accomplished without breaking BC - we can't change it's basic mapping of controller and action pairs, they still need to be defined as first parameters.

But there is "a hack" which can be used without any changes to the code.

Routers are filters for the Request now, so it's only a matter of specifying a parameter named module in the URI. So all we have to do is to add a 'module/admin' to the wildcard parameters in the router:

Instead of:
http://localhost/test/index.php/news/add

You will have to use:
http://localhost/test/index.php/news/add/module/admin

--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] | 
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Everyone is born with genius, but most people only keep it a few minutes."
-- Edgard Varese

Reply via email to