From e2f623b7ee1b0b3fc38c3477ab5d948bddadbeca Mon Sep 17 00:00:00 2001 From: abijah Date: Thu, 11 Jun 2009 00:17:13 +0000 Subject: [PATCH] It seems that the Javascript helper is automatically included, but not if there is a problem with the controller, such as if an action is missing. In this case the user sees a useless error message instead of the normal 'action missing' one. By manually adding the Javascript helper, that problem should go away. git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@97 97e9348a-65ac-dc4b-aefc-98561f571b83 --- app_controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_controller.php b/app_controller.php index 188567c..6119e75 100644 --- a/app_controller.php +++ b/app_controller.php @@ -35,7 +35,7 @@ * @subpackage cake.app */ class AppController extends Controller { - var $helpers = array('Html', 'Format', 'Time'); + var $helpers = array('Html', 'Javascript', 'Format', 'Time'); var $components = array('DebugKit.Toolbar'); function sideMenuLinks() {