public function init()
 {
     if (!$this->btnSubmit) {
         $this->btnSubmit = \Yii::t('skeeks/reviews2', 'Add a review');
     }
     parent::init();
 }
Ejemplo n.º 2
0
 public function init()
 {
     if (!$this->btnSubmit) {
         $this->btnSubmit = \Yii::t('skeeks/form2/app', 'Submit');
     }
     parent::init();
 }
Ejemplo n.º 3
0
 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());
     }
 }