I am trying to pass a value created in a controller to a JS on the
target view.

$this->set('flag', 1); is in the controller.

var flag = <?php echo $flag ?>; is in the JS. I have also tried <?=
$flag ?> and <?php print($flag) ?>.

An alert($flag); statement in the JS displays nothing.

A search of this subject on Google retrieves numerous posts stating
that this works in non-CakePHP PHP code.

What am I doing wrong?

Using CakePHP 1.1.13.4450.

Thanks for an help offered.

Peter -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to