this_summer
- this_summer 回复了 BoyLee 的回答
从error字面理解,是
'\yii\bootstrap\ActiveForm'
, 被当作string了,是不是这里要输入类名,或者 类的实例try this
'activeform' => \yii\bootstrap\ActiveForm,
这个其实看下 init部分的代码就能很清楚了。
这个也不行,我也试了,后来换成了'ActiveForm' =>'\yii\widgets\ActiveForm::begin',就可以了
这个问题怎么结局啊?我也碰到了这个问题,能说详细点么
- this_summer 回复了话题 twig模板创建form表单
我在main.php里面配置了\yii\bootstrap\ActiveForm
- this_summer 发表了说说Impossible to invoke a method ("begin") on a string variable ("\yii\bootstrap\ActiveForm").用twig模板的的时候报的错