My app works fine, but I'm not sure if it's considered "bad practice" with what I'm doing for a particular knockout.js form.
I'm using CakePHP as the backend and knockout.js for a form on one of my views. On this view, the JavaScript file for the Knockout.js form containing the MVVM goodies is included. So, this knockout form accesses the JS script, and one of the functions involves this JS script sending a request out to a different PHP file. Right now this file is just in the root directory of my folder (not in the app directory), and since it's only interacting with the JavasScript directly and not CakePHP I'm wondering if this is a no-no. I guess you could think of it as this PHP file is interacting with the Knockout "system" and not the CakePHP "system".
I made this file a while back to do some calculations and it just seems easier to leave it this way considering I don't need a view or anything displayed from it. JSON format data is sent to it, and it sends modified data back to JavaScript in JSON format. Basically this php file only interacts with JavaScript and never with the CakePHP structure.