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

How to call controller and its action in ajax url : 'controllername/viewname/action'



33.8k
Accepted
answer

Just like a URL: controller/action. Note that, doing it in AJAX, you can't do things like $this->response->redirect (for example).