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@97 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-11 00:17:13 +00:00
parent 2c224dbc62
commit d3c7011fc8

View File

@@ -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() {