On 2/20/07, Steniskis <[EMAIL PROTECTED]> wrote:
>
> You put your js files in a directory js inside the webroot directory
>
> Then you have  helpers to add.
>
> In the controller, you include
> var $helpers = array('html', 'javascript');

var $helpers = array('html', 'javascript','head','util');

you need to add the head helper and util for the calls to $head-> to work...

>
> and in your layout, you put this for example

> $head->js('prototype');
> $head->js('scriptaculous.js?load=effects');
> $head->js('controls');

For some reason calls to $head-> do not work in layout

I would suggest that investigate html and javascript helpers before
you venture with head helper.

http://manual.cakephp.org/chapter/helpers

HTH

Tarique

-- 
=============================================================
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog: http://cheesecake-photoblog.org
=============================================================

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