我为一个名为
vast_table
然而,我在Gii生成的模型中有一个语法错误,这是非常好的。
错误是:
PHP Parse Error â yii\base\ErrorException
syntax error, unexpected ']'
我的搜索模型如下所示:
$query->andFilterWhere(['like', 'Ad', $this->Ad])
->andFilterWhere(['like', 'Collapse', $this->Collapse])
->andFilterWhere(['like', 'CloseLinear', $this->CloseLinear])
->andFilterWhere(['like', 'Skip', $this->Skip])
->andFilterWhere(['like', 'Played10%', $this->Played10%])
->andFilterWhere(['like', 'Played30%', $this->Played30%])
->andFilterWhere(['like', 'Played40%', $this->Played40%])
->andFilterWhere(['like', 'Played60%', $this->Played60%]);