public function init() { if (!$this->btnSubmit) { $this->btnSubmit = \Yii::t('skeeks/reviews2', 'Add a review'); } parent::init(); }
public function init() { if (!$this->btnSubmit) { $this->btnSubmit = \Yii::t('skeeks/form2/app', 'Submit'); } parent::init(); }
public function init() { parent::init(); if (!$this->searchModelAttributes) { $this->searchModelAttributes = []; } if (!$this->searchModel) { $this->searchModel = new \skeeks\cms\shop\cmsWidgets\filters\models\SearchProductsModel(); } if (!$this->searchRelatedPropertiesModel && $this->cmsContent) { $this->searchRelatedPropertiesModel = new SearchRelatedPropertiesModel(); $this->searchRelatedPropertiesModel->initCmsContent($this->cmsContent); } $this->searchModel->load(\Yii::$app->request->get()); if ($this->searchRelatedPropertiesModel) { $this->searchRelatedPropertiesModel->load(\Yii::$app->request->get()); } }