In CakeProx 3.x, I want to declare js vars in a single view in a custom script, and to this var Call external js loaded in a single view
This is my visual code:
html-> Script ('edit'); ? & Gt; & Lt; Script type = "text / javascript" & gt; Var my_var = 'try'; & Lt; / Script & gt;
I also want to call my_var in edit.js
Announce the variable before joining JS.
& lt; Script type = "text / javascript" & gt; Var my_var = 'try'; & Lt; / Script & gt; & Lt ;? Php echo $ this- & gt; Html-> Script ('edit'); ? & Gt;
No comments:
Post a Comment