I store my navigation content in the navigation.xm file in the configuration folder of my project.
Actually I have two modules, the default module which works with the example is the authentication and module for the administrator of the original page usage and admin on the website.
When I sign in as an administrator, a special administrator navigates my ACL and navigation. Appears according to Xml, a navigation element looks like this:
& lt; Ticket & gt; & Lt; Label & gt; Tickets & lt; / Labels & gt; & Lt; Resources & gt; Administrator: ticket & lt; / Resources & gt; & Lt; Module & gt; Admin & lt; / Module & gt; & Lt; Controller & gt; Tickets & lt; / Controller & gt; & Lt; Action & gt; Payticket & lt; / Action & gt; & Lt; Privileges & gt; Tickets & lt; / Privileges & gt; & Lt; / Ticket & gt;
But when I'm logged in as an administrator, there is a big problem with my website's URL. I have developed my admin module for a long time so that the default module of the URL Looks like:
$ this-> url (array ('controller' = & gt; 'index', 'action' = & gt; 'contact'))
So I left 'module' => 'default' because I do not want / default / browsers to appear in the URL bar. For.
When I go to an administrator site, eg Mysite.de/admin/ticket, All the URLs on my page that are normally pointing to the default module now refer to the admin module and when I go to them, I get a bad request.
$ ->; Url (array ('Controller' = & gt; 'index', 'verb' =>, 'contact'))
Generally mysite.de/index/contact creates a The page on the admin becomes mysite.de/admin/index/contact.
Do I have to adjust all the links and add module information or any other solution?
If you consider the default as your model, then Zend will not include it in your URL, This is the default module.
For example, the bullding of the following: - Controller: Index - Action: Index - Module: Default
result only URL /.
Comments
Post a Comment