You can add an app_controller.php file to your app directory and add
the helpers there.
?php
class AppController extends Controller {
var $helpers = array('Html', 'Javascript');
?
Brett Wilton
http://wiltonsoftware.com
--~--~-~--~~~---~--~~
You
Do you have the Javascript helper on whatever controller you're using?
Ed Drain wrote:
I get the following error:
Line 31 is the one with the javascript-link part.
Whats wrong with this?
*Notice* (8) javascript:void(0);: Undefined variable: javascript
Is it correct to put the Javascript helper in page_controllers.php?
It seems that's the only way to get the helper loaded and available to
home.ctp and default.ctp layout.
On Nov 7, 10:24 am, Bernardo Vieira [EMAIL PROTECTED] wrote:
Do you have the Javascript helper on whatever controller