public function init()
 {
     $this->name = \Yii::t('skeeks/form2/app', 'Forms management');
     $this->modelShowAttribute = "name";
     $this->modelClassName = Form2Form::className();
     parent::init();
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getForm()
 {
     return $this->hasOne(Form2Form::className(), ['id' => 'form_id']);
 }
 public function init()
 {
     parent::init();
     echo \yii\helpers\Html::hiddenInput("sx-model-value", $this->modelForm->id);
     echo \yii\helpers\Html::hiddenInput("sx-model", $this->modelForm->className());
 }