public function init() { if (!Yii::getAlias('@server', true)) { throw new NotFoundHttpException('Server module is missing'); } parent::init(); }
public function init() { parent::init(); if (!Yii::getAlias('@domain', true)) { throw new NotFoundHttpException('Domain module is missing'); } $this->formOptions['zones'] = $this->getZones(); }