Example #1
0
 public function initialize()
 {
     $this->formz = new Formz($this->modx);
     $this->addCss($this->formz->config['cssUrl'] . 'mgr.css');
     $this->addJavascript($this->formz->config['jsUrl'] . 'mgr/formz.js');
     $this->addHtml('<script type="text/javascript">
     Ext.onReady(function() {
         Formz.config = ' . $this->modx->toJSON($this->formz->config) . ';
         Formz.config.connector_url = "' . $this->formz->config['connectorUrl'] . '";
     });
     </script>');
     return parent::initialize();
 }
Example #2
0
 public function initialize()
 {
     $this->bigbrother = new BigBrother($this->modx);
     $this->addCss($this->bigbrother->config['css_url'] . 'mgr.css');
     return parent::initialize();
 }