예제 #1
0
 function __construct($config = [])
 {
     $this->response = new \stdClass();
     $this->_plugins = new PluginMgr($this);
     $this->_buttons = new ButtonMgr($this);
     $this->name = get_called_class();
     $this->beforeInit();
     parent::__construct($config);
 }
예제 #2
0
 public function __construct($config = [])
 {
     $this->response = new \stdClass();
     //$this->response->params = new \stdClass();
     $this->key = ArrayHelper::getValue($config, 'key');
     $this->isNewRecord = !$this->key;
     $this->_config = $config;
     $this->_init();
     parent::__construct($config);
     $this->action = ArrayHelper::getValue($config, 'action', 'load');
 }