pimcore: How to enable zend's automatic routing
I read through the Zend Controller doco and it says that it can do routing as follows:
example.com/controller/action
But in Pimcore this seems to be disabled. I have to define static routes. I don't mind defining the routes, but the thing is my regular expressions aren't very good.
Can someone explain开发者_JAVA技巧 to me if it is possible to enable the normal zend controller style routing as above and stop having to make use of the pimcore's built in static routes?
Thanks
It's not possible to enable the normal zend controller style routing, without breaking pimcore. There are 2 possibilities:
use
example.org/?controller=controllername&action=actionname
for direct access to a controller-action (as described in the Pimcore Documentation - Magic Parameters)use the built in static routes. For example:
pattern: |/news/list|, controller: news, action: list
have a look at pimcore plugins for that. /pugin/name/controller/action/ ...
精彩评论