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&controll er=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.
// I know the following code makes probably not much sense, but i have no idea how to do it !
$front = Zend_Controller_Front::getInstance();
$router = $front->getRouter();
$action = JRequest::getVar('action');
$controller = JRequest::getVar('controller');
$format = JRequest::getVar('format', 'html');
$administrator = new Zend_Controller_Router_Route_Regex(
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!
$this->url(array('controller'=>'attribute','action'=>'add.value.form', 'format'=>'json', 'extraParam' => 'test', 'extraParam2' => 'test2'));
// Generates: index.php?option=com_webshop&module=admin&controller=attribute&action=edit&format=json
// with the extraParam & extraParam2
Hope my explanation was a bit clear.
Thanks in advance,