I am trying to follow the CMP tutorial/example; I created my Namespace, Controller file, Action and Menu Object. In my Controller file I’m including a js file like this:
$modx->regClientStartupScript('/assets/components/widget_hilite/js/hilite.js');
return 'This is my first Custom Manager Page';
My .js file is responsive - when I put a simple "alert()" statement in it, it works. But when I try to use MODExt.Mst.alert, it throws an error.
MODx.Msg.alert('Warning!','You are out of space! We should clear the cache.',function() {
MODx.clearCache();
},MODx);
"Uncaught TypeError: Object function (A){A=A||{};MODx.Msg.superclass.constructor.call(this,A);this.addEvents({success:true,failure:true,cancel:true});Ext.MessageBox.minWidth=200;} has no method ’alert’"
Am I missing a necessary step for using MODExt?