yiidoc / yii2-redactor

Extension Redactor WYSIWYG for Yii2 framework
BSD 3-Clause "New" or "Revised" License
187 stars 87 forks source link

Invalid config Redactor module with "$moduleId" #81

Closed kinmokusu closed 6 years ago

kinmokusu commented 6 years ago

I do not know why am getting this error

here is the module configuration in common\conf\main.php


    'modules' => [
        'redactor' => [
            'class' => '\yii\redactor\RedactorModule',
            'uploadDir' => '@webroot/path/to/uploadfolder',
            'uploadUrl' => '@web/path/to/uploadfolder',
            'imageAllowExtensions'=>['jpg','png','gif']
        ]
],

and this is the code in the form view
`echo $form->field($model, 'text')->widget(\yii\redactor\widgets\Redactor::className());`
D4lvik commented 4 years ago

you already have " 'modules' => " in "common \ conf \ main.php"