Newbie question - Where should I place common ajax code in cakephp?


#1

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 !


#2

Javascript files (you’re referring to “ajax calls”) are static assets which are usually loaded from the webroot directory.