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?
Figured it out, I added these lines in my PhP file:
And then I can make a AJAX call with the following lines: