Class 'dosamigos\ckeditor\CKEditor' not found

瘦欲@ 提交于 2019-12-25 09:28:33

问题


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?


回答1:


Copy composer.json file to server and run composer update on server.



来源:https://stackoverflow.com/questions/41719793/class-dosamigos-ckeditor-ckeditor-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!