How to make AJAX/REST style calls to server?

I want to do things in a REST style manner; using jQuery or AngularJS (or maybe something else); passing around JSON. How can I do that? Where to put my JS code? Where to define my server method (controller/action or any other convention that is there in Xibo)?

Best;

Hi There,

The footer.php is your answer. You can put your js code directly to footer.php or you can include them in footer.php.

1 Like

Controllers are in lib/pages/ as are actions, we don’t really have models, just static data classes lib/data/

1.8 is drastically different and follows MVC (Slim + Twig) and should be more familiar (but not yet available):

1 Like