On 1/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> and using the function like:
> $head->js("jquery-latest.pack.js");
> $head->registered();
try
$javascript->link("jquery-latest.pack.js");
$head->registered();
Since most probably you are going to need jquery in almost all your
actions. If not then use $head->js("jquery-latest.pack.js"); only in
views which need them.
The thumb rule I follow is not to use anything from Head helper other
than $head->registered(); in the layout file
HTH
Tarique
--
=============================================================
PHP Applications 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
-~----------~----~----~----~------~----~------~--~---