I have a view file called edit.ctp and a js file called edit.js. On edit.ctp i'm calling edit.js like that:
$this->Html->script('edit', array('inline' => false));
js files its being included right so i have a issue to use php markups like this answer this answer
probably because the file is .js is not able to accept php makups.
So what is the best way to work with php markups on js files?