发布网友 发布时间:2022-04-23 07:07
共1个回答
热心网友 时间:2022-06-17 06:33
1我正常composer安装"kucha/ueditor": "*" 代码已经安装到对应目录
2我在控制器里面插入
public function actions()
{
return [
'upload' => [
'class' => 'kucha\ueditor\UEditorAction',
'config' => [
"imageUrlPrefix" => "http://www.baidu.com",//图片访问路径前缀
"imagePathFormat" => "/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}" //上传保存路径
],
]
];
}