1. Copy cake/libs/controller/pages_controller.php to your app/controllers.
2. Open and change:
var $helpers = array('Html');
to:
var $helpers = array('Html', 'Javascript');
and that's it.
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de dizz
Enviado el: MiƩrcoles, 14 de Marzo de 2007 04:52 p.m.
Para: Cake PHP
Asunto: Using Javascript in Static Pages
Hello, how can you access the javascript helper using the static
pages? ie. PagesController
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---