在控制器中加入
public function behaviors()
{
return [
'upload' => [
'class' => 'kucha\ueditor\UEditorAction',
'config' => [
"imageUrlPrefix" => "http://xxsx",//图片访问路径前缀
"imagePathFormat" => "/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}" //上传保存路径
],
],
注释后就不会报错
报错如下
Missing required parameter “id” when instantiating “kucha\ueditor\UEditorAction”.
请问这句话具体是什么意思
人家写actions 你咋写behaviors里了