phroze
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Routing problem using the Zend_Controller_Router_Route_Regex
in Frameworks
Posted
Hello,
I'm quite new to Zend Framework (and especially to this forum) so probably you will see me around more often
Currently i am trying to use Zend Framework on top of another framework (Joomla CMS/Platform). I understand that this might not be the best combination, but ok, choice was made
It's all working quite well but I ran in to some routing problems and i'm hoping you experts can help me out.
I have 2 modules ('admin' and 'site') and i am trying to route the requests to the right pages. Depending on the url i need to check if i need to load the admin or the site module.
Currently the url "/administrator/index.php?option=com_webshop&module=admin&controller=attribute&action=edit" should load the admin module (which should be easy to regonize because of the '/administrator' in the url.
But what is the best way to do it? At the moment i use the code below to route to the admin module.
The code works, but not like i want it to. It loads the admin module based on the '/administrator' part, but now when I use the url helper (see example below) in my viewscript all the extra params get stripped off.
If I dont use this router it doesn't get into the admin module. I have no idea where to go from here so any help is welcome!
Hope my explanation was a bit clear.
Thanks in advance,
Marco