title: yii2 Trying to copy a directory to itself or a subdirectory
body: <p>when loading kartik\detail\DetailView，i came across：</p>
  
  <p>Invalid Parameter – yii\base\InvalidParamException</p>
  
  <p>Trying to copy a directory to itself or a subdirectory.</p>
  
  <p>and the error stack is below here</p>
  
  <pre><code>1. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/helpers/BaseFileHelper.php at line 260
  2. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/web/AssetManager.php at line 542 – yii\helpers\BaseFileHelper::copyDirectory('/Users/qijiaona/var/www/intel/ba...', '/Users/qijiaona/var/www/intel/ba...', ['dirMode' =&gt; 509, 'fileMode' =&gt; null, 'beforeCopy' =&gt; Closure])
  3. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/web/AssetManager.php at line 458 – yii\web\AssetManager::publishDirectory('/Users/qijiaona/var/www/intel/ba...', [])
  4. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/web/AssetBundle.php at line 183 – yii\web\AssetManager::publish('assets', [])
  5. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/web/AssetManager.php at line 266 – yii\web\AssetBundle::publish(yii\web\AssetManager)
  6. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/web/AssetManager.php at line 237 – yii\web\AssetManager::loadBundle('dosamigos\ckeditor\CKEditorWidge...', [], true)
  7. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/web/View.php at line 284 – yii\web\AssetManager::getBundle('dosamigos\ckeditor\CKEditorWidge...')
  8. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/web/AssetBundle.php at line 123 – yii\web\View::registerAssetBundle('dosamigos\ckeditor\CKEditorWidge...')
  9. in /Users/qijiaona/var/www/intel/vendor/2amigos/yii2-ckeditor-widget/src/CKEditor.php at line 57 – yii\web\AssetBundle::register(yii\web\View)
  10. in /Users/qijiaona/var/www/intel/vendor/2amigos/yii2-ckeditor-widget/src/CKEditor.php at line 44 – dosamigos\ckeditor\CKEditor::registerPlugin()
  11. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/Widget.php at line 102 – dosamigos\ckeditor\CKEditor::run()
  12. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/widgets/ActiveField.php at line 703 – yii\base\Widget::widget(['preset' =&gt; 'full', 'clientOptions' =&gt; ['allowedContent' =&gt; true, 'extraPlugins' =&gt; 'lineheight,uploadimage', 'line_height' =&gt; '1;1.2;1.5;2;2.5;3', 'imageUploadUrl' =&gt; '/accelerator/upload'], 'model' =&gt; common\models\Accelerator, 'attribute' =&gt; 'acc_desc_long', ...])
  13. in /Users/qijiaona/var/www/intel/vendor/kartik-v/yii2-detail-view/DetailView.php at line 873 – yii\widgets\ActiveField::widget('\dosamigos\ckeditor\CKEditor', ['preset' =&gt; 'full', 'clientOptions' =&gt; ['allowedContent' =&gt; true, 'extraPlugins' =&gt; 'lineheight,uploadimage', 'line_height' =&gt; '1;1.2;1.5;2;2.5;3', 'imageUploadUrl' =&gt; '/accelerator/upload']])
  14. in /Users/qijiaona/var/www/intel/vendor/kartik-v/yii2-detail-view/DetailView.php at line 785 – kartik\detail\DetailView::renderFormAttribute(['attribute' =&gt; 'acc_desc_long', 'format' =&gt; 'raw', 'type' =&gt; 'widget', 'widgetOptions' =&gt; ['class' =&gt; '\dosamigos\ckeditor\CKEditor', 'preset' =&gt; 'full', 'clientOptions' =&gt; ['allowedContent' =&gt; true, 'extraPlugins' =&gt; 'lineheight,uploadimage', 'line_height' =&gt; '1;1.2;1.5;2;2.5;3', 'imageUploadUrl' =&gt; '/accelerator/upload']], ...])
  15. in /Users/qijiaona/var/www/intel/vendor/kartik-v/yii2-detail-view/DetailView.php at line 745 – kartik\detail\DetailView::renderAttributeItem(['attribute' =&gt; 'acc_desc_long', 'format' =&gt; 'raw', 'type' =&gt; 'widget', 'widgetOptions' =&gt; ['class' =&gt; '\dosamigos\ckeditor\CKEditor', 'preset' =&gt; 'full', 'clientOptions' =&gt; ['allowedContent' =&gt; true, 'extraPlugins' =&gt; 'lineheight,uploadimage', 'line_height' =&gt; '1;1.2;1.5;2;2.5;3', 'imageUploadUrl' =&gt; '/accelerator/upload']], ...])
  16. in /Users/qijiaona/var/www/intel/vendor/kartik-v/yii2-detail-view/DetailView.php at line 718 – kartik\detail\DetailView::renderAttributeRow(['attribute' =&gt; 'acc_desc_long', 'format' =&gt; 'raw', 'type' =&gt; 'widget', 'widgetOptions' =&gt; ['class' =&gt; '\dosamigos\ckeditor\CKEditor', 'preset' =&gt; 'full', 'clientOptions' =&gt; ['allowedContent' =&gt; true, 'extraPlugins' =&gt; 'lineheight,uploadimage', 'line_height' =&gt; '1;1.2;1.5;2;2.5;3', 'imageUploadUrl' =&gt; '/accelerator/upload']], ...])
  17. in /Users/qijiaona/var/www/intel/vendor/kartik-v/yii2-detail-view/DetailView.php at line 611 – kartik\detail\DetailView::renderDetailView()
  18. in /Users/qijiaona/var/www/intel/vendor/kartik-v/yii2-detail-view/DetailView.php at line 548 – kartik\detail\DetailView::runWidget()
  19. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/Widget.php at line 102 – kartik\detail\DetailView::run()
  20. in /Users/qijiaona/var/www/intel/backend/views/accelerator/view.php at line 176 – yii\base\Widget::widget(['model' =&gt; common\models\Accelerator, 'mode' =&gt; 'view', 'formOptions' =&gt; ['options' =&gt; ['enctype' =&gt; 'multipart/form-data']], 'panel' =&gt; ['heading' =&gt; '众创空间详情', 'type' =&gt; 'primary'], ...])
  21. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/View.php at line 326 – require('/Users/qijiaona/var/www/intel/ba...')
  22. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/View.php at line 248 – yii\base\View::renderPhpFile('/Users/qijiaona/var/www/intel/ba...', ['model' =&gt; common\models\Accelerator, 'dataProvider' =&gt; yii\data\ActiveDataProvider, 'dpMentor' =&gt; yii\data\ActiveDataProvider, 'dpInvestor' =&gt; yii\data\ActiveDataProvider, ...])
  23. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/View.php at line 150 – yii\base\View::renderFile('/Users/qijiaona/var/www/intel/ba...', ['model' =&gt; common\models\Accelerator, 'dataProvider' =&gt; yii\data\ActiveDataProvider, 'dpMentor' =&gt; yii\data\ActiveDataProvider, 'dpInvestor' =&gt; yii\data\ActiveDataProvider, ...], backend\controllers\AcceleratorController)
  24. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/Controller.php at line 378 – yii\base\View::render('view', ['model' =&gt; common\models\Accelerator, 'dataProvider' =&gt; yii\data\ActiveDataProvider, 'dpMentor' =&gt; yii\data\ActiveDataProvider, 'dpInvestor' =&gt; yii\data\ActiveDataProvider, ...], backend\controllers\AcceleratorController)
  25. in /Users/qijiaona/var/www/intel/backend/controllers/AcceleratorController.php at line 189 – yii\base\Controller::render('view', ['model' =&gt; common\models\Accelerator, 'dataProvider' =&gt; yii\data\ActiveDataProvider, 'dpMentor' =&gt; yii\data\ActiveDataProvider, 'dpInvestor' =&gt; yii\data\ActiveDataProvider, ...])
  26. backend\controllers\AcceleratorController::actionView('58')
  27. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([backend\controllers\AcceleratorController, 'actionView'], ['58'])
  28. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/Controller.php at line 154 – yii\base\InlineAction::runWithParams(['r' =&gt; 'accelerator/view', 'id' =&gt; '58'])
  29. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/Module.php at line 454 – yii\base\Controller::runAction('view', ['r' =&gt; 'accelerator/view', 'id' =&gt; '58'])
  30. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/web/Application.php at line 100 – yii\base\Module::runAction('accelerator/view', ['r' =&gt; 'accelerator/view', 'id' =&gt; '58'])
  31. in /Users/qijiaona/var/www/intel/vendor/yiisoft/yii2/base/Application.php at line 375 – yii\web\Application::handleRequest(yii\web\Request)
  32. in /Users/qijiaona/var/www/intel/backend/web/index.php at line 18 – yii\base\Application::run()
  </code></pre>
  
  <p>and my AppAsset class config is:</p>
  
  <pre><code>public $basePath = '@webroot';
  public $baseUrl = '@web';
  public $css = [
      'css/site.css',
  ];
  public $js = [
  ];
  public $depends = [
      'yii\web\YiiAsset',
      'yii\bootstrap\BootstrapAsset',
  ];
  </code></pre>
  
  <p>what should i do? can anybody help me?</p>