You can call like this from the view:

<?php echo $head->js('customborders/cb'); ?>

and you need to include the 'head' helper in your controller:

var $helpers = array('Html', 'Head'); // html is always needed


On May 12, 12:53 pm, dom <[EMAIL PROTECTED]> wrote:
> Hi everybody.
> I wonder if it is possible to load a javascript file outside the
> <head> section of the layout. I have only one layout, default.thtml,
> as all the calls are Ajax calls. So I have only one <head> section...
> But I don't want to load the whole of my javascript file at once. It
> would be more sensible to cut it up into smaller files and load only
> the minimum at first and load the rest later as needed.
> Does that make any sense ? And if it does, how can you do it?
>
> Dom


--~--~---------~--~----~------------~-------~--~----~
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