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');
and in your layout, you put this for example :
echo $html->charsetTag('UTF-8');
$head->js('prototype');
$head->js('scriptaculous.js?load=effects');
$head->js('controls');
$head->js('datepicker');
$head->js('zebra_tables');
$head->js('listes');
$head->js('script');
$head->js('jquery');
$head->js('thickbox');
$head->js('common');
if (ereg("MSIE", getenv("HTTP_USER_AGENT"))){
$head->css('ie6_or_less');
}
$head->css('page');
$head->css('main');
$head->css('thickbox');
$head->css('datepicker');
Cheers
Steniskis
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---