Hi ,
In my application , i am trying to use the Php variable in my JQUery . where $viewfields is an array that i retrieve from my cakephp controller. If i tried to use that one like below, i am getting error as for( in Array){\n
for(<?=$viewfield;?> in <?=$viewfields;?>){}
Please suggest me. What to do so..
Note: i was previously using the above code like
<?php foreach ($viewfields as $r): ?>
<?php endforeach?>
It works good. But i thought of changing it like for() but its showing error why so??