一直报403没有访问权限
下面是表单代码:
<?= $form->field($model, 'content')->widget(Redactor::className(),
[
'clientOptions' => [
'imageManagerJson' => ['/redactor/upload/image-json'],
'imageUpload' => ['/redactor/upload/image'],
'fileUpload' => ['/redactor/upload/file'],
'lang' => 'zh_cn',
'plugins' => ['clips', 'fontcolor','imagemanager','video'],
'minHeight'=>250,
]
]
) ?>
配置文件:
'modules' => [
'admin'=>'app\modules\admin',//后台模块引用
'redactor' => [
'class' => 'yii\redactor\RedactorModule',
'uploadDir' => '@webroot/uploads',
'uploadUrl' => '@web/uploads',
'imageAllowExtensions'=>['jpg','png','gif'],
],
],
就帮助
兄弟我也弄好了,原来是我对别名理解不够透彻导致的
同问!希望高手回答@=