Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Creating own Controller for AJAX requests

Hey guys, I'm having some trouble figuring out how to create my own controller.

I simply want to be able to make an AJAX call to a specific function.

This is what I have until now (in a file Plugins/Codenames/class.codenamescontroller.php):


Anyone able to help?

Comments

  • Figured it out, I added these lines in my PhP file:


    And then I can make a AJAX call with the following lines:


Sign In or Register to comment.