这家伙有点懒,还没写个性签名!
你前面form页面有指定场景没?
我在 action方法中有指定场景(如下代码),你说的form页面是指view页面吗?
$post = $request->post('Brand'); $model = new Brand(); $model->scenario = 'create'; $model->attributes = $post;