Phalcon的 dispatcher->forward()方法


刚开始用phalcon, 在多模块项目中, 向别的命名空间跳转的时候出现错误


 Uncaught exception 'Phalcon\Mvc\Dispatcher\Exception' with message 'Dispatcher has detected a cyclic routing causing stability problems'

这是dispatcher需要在注入服务时候设置一下吗?

php phalcon

妹妹的秘密部位 10 years, 2 months ago

Doc

http://docs.phalconphp.com/zh/latest/reference/dispatching.html#implementing-your-own-dispatcher

A forward action accepts the following parameters:

controller => A valid controller name to forward to.
action => A valid action name to forward to.
params => An array of parameters for the action
namespace => A valid namespace name where the controller is part of

More

https://github.com/chaban/city_site
https://github.com/phalcon/mvc

magican answered 10 years, 2 months ago

Your Answer