yii2 使用Ueditor 报错:请求后台配置项http错误,上传功能将不能正常使用!

yii2中引入Ueditor :在composer.json中添加:"crazydb/yii2-ueditor": "*",再composer update

之前使用的Ueditor 并没有出现什么问题 ,今天再次使用时出现了问题:

GET http://xxx.cn/ueditor/index?action=config&&noCache=1527044296955 500 (Internal Server Error)

请求后台配置项http错误,上传功能将不能正常使用!


解决方法: 

在controller中定义ueditorController 例:

<?php
namespace app\controllers;
class UeditorController extends \crazydb\ueditor\UEditorController
{
    public function init(){
        parent::init();
    }
}


猜你喜欢

转载自blog.csdn.net/weixin_39461487/article/details/80417052
今日推荐