My controller actions were working before, recently I did change something else, did not touch these action. But seems all the AJAX actions dont work anymore.
Web browser debug console returns 404 Not Found error.
Could you please point me some direction that I can check? I am panic right now. Thank you all.
I found the problem, for some reason, the setExtensions() in routers.php does not allow to use twice, the 1st statement for JSON will not be applied any more
Hi @general2000vn I am also using ajax plugin for my project but i am’t getting response i mean i cannot understand… can you show me how to setup controller for ajax?
i create a ajax file then define all ajax method which send request to control but i am getting reponse
{error:’ ‘,success:’ ',content:‘hello world’}
First, this is a completely separate issue, you should start a new question for it. Second, it seems that your controller is working fine and sending a valid response. What’s wrong about it? (Apart from JSON syntax issues that I’m assuming are from you re-typing the data instead of copy-and-pasting it.)