Recently, vendors encountered a problem when using the Phalcon framework, that is, if the current controller calls methods in other controllers and the problem is resolved, the following code is provided:
$ This-> Dispatcher-> forward (Array ('controller' => 'other controller name', 'Action' => 'method name' in other controllers '));
If you want other controllers to pass parameters, the Code is as follows:
$ This-> Dispatcher-> forward (Array ('controller' => 'other controller name ', 'action' => 'method names in other controllers ''params' => array (, 3 )));
Ah, there are too few references for the Phalcon framework in China. I do my best and hope you will not lose enthusiasm for Phalcon.
This article from the "heaven reward diligence" blog, please be sure to keep this source http://ivendor.blog.51cto.com/8613733/1559738
Phalcon cross-controller call