liyadong
是不是post里的url有问题
$.post('index.php?r=notification/delete-all',{ ids : keys},function(data){ // 这里添加提示信息 alert('success!'); });
求解,在本地的环境中使用UEditor是好的,可是上传到服务器上却显示,找不到UEditor类
_form.php中的代码
use kucha\ueditor\UEditor; <?= UEditor::widget([ 'model' => $model, 'attribute' => 'text', ]) ?>
在服务器上提示
PHP Fatal Error – yii\base\ErrorException Class 'kucha\ueditor\UEditor' not found
本地环境 系统-mac 环境-xampp
服务器上的UEditor包,我是在本地下好后,用ftp上传到vendor中的
更新vendor/composer目录下的文件
- liyadong 评论了教程 Yii2 使用表单上传文件
必须手工先建立uploads目录,不然会出错。
模板文件中应该加上 use yii\captcha\Captcha;