I am just asking if it's mandatory to call $javascript->cacheEvents
before something like this :
..some html code here
$javascript->codeBlock();
alert('test');
$javascript->endBlock();
if cacheEvents it's not called, the view is "empty".
By the way having $script_for_layout in the layout, does not change
anything to the "problem".
On Aug 11, 9:25 am, rtconner <[EMAIL PROTECTED]> wrote:
> I dunno what you are asking, but the codeBlock is there so you can use
> $javascript_for_layout in your layout so you can put all js code into
> the html Head tag section
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---