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());`
I do not know why am getting this error
here is the module configuration in common\conf\main.php