I am working on a project in Yii2
where I need to integrate CKEditor
. I used this to install it:
composer require 2amigos/yii2-ckeditor-widget
It downloads the library files under /vendor directory. When I copied the files from local to server and used this:
use dosamigos\ckeditor\CKEditor;
<?= $form->field($userSurveyConfig,
'survey_email_body')->widget(CKEditor::className(),
['options' => ['rows' => 6],'preset' => 'basic'])
?>
When I run the page, this error pops up:
> Class 'dosamigos\ckeditor\CKEditor' not found
What i am doing wrong here? Any help?