Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



17.5k
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).