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); }
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'); }