开发者

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:

  1. use example.org/?controller=controllername&action=actionname for direct access to a controller-action (as described in the Pimcore Documentation - Magic Parameters)

  2. 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/ ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜