We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

anyone can help me, how can i calls a controller's method from any location like in view file?

Calls a controller's method from any location. i want get controller action view render as result to return back to the view. before i used CakePHP,it's have a requestAction function in the view ,it's can get controller action view render from view. so any idea for me to solve my question. thanks



98.9k

Phalcon does not support calling actions or controllers in views since the view rendering is performed after the dispatch loop has ended.