I am going to be making ajax calls across numerous views and am unclear on where to put the common ajax code? Does this go i webroot? Help !
Javascript files (you’re referring to “ajax calls”) are static assets which are usually loaded from the webroot directory.