Example #1
0
 function __construct($config = [])
 {
     $this->_controls = new ControlMgr($this);
     $this->_actions = new ActionMgr($this);
     $this->_actions->load(['load' => ['on' => [$this, 'onLoad']], 'control' => ['on' => [$this, 'onControl']]]);
     $this->options = ['closeOnEscape' => true, 'isModal' => true];
     parent::__construct($config);
     //$this->_actions->current = $this->action ? : 'load';
 }
Example #2
0
 function __construct($config = [])
 {
     $this->_steps = Yii::createObject(array_merge($config, ['class' => StepMgr::className()]), [$this]);
     parent::__construct(['key' => ArrayHelper::getValue($config, 'key'), 'action' => ArrayHelper::getValue($config, 'action', 'load')]);
 }