public function getFilterValues() { $field = FFields::findOne($this->id_field); $r = array(); if ($field->typeLink->name == "select") { $r = $this->hasMany(SSelect::className(), ['id_field' => 'id_field']); } return $r; }
public function actionField() { $get = Yii::$app->request->get(); $id = $get["id"]; $field = FFields::findOne($id); return $this->render('field', ['field' => $field]); }