Heim > Backend-Entwicklung > PHP-Tutorial > yii2 Trying to copy a directory to itself or a subdirectory

yii2 Trying to copy a directory to itself or a subdirectory

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-06 20:10:09
Original
1771 Leute haben es durchsucht

用php composer.phar 添加了个扩展 就报这个错误了
上次也遇到过 莫名其妙的好了 好像记得我只清空了web目录下的缓存
可这次却不行了

<code>public static function copyDirectory($src, $dst, $options = [])
    {
        if ($src === $dst || strpos($dst, $src) === 0) {
            throw new InvalidParamException('Trying to copy a directory to itself or a subdirectory.');
        }
        if (!is_dir($dst)) {
            static::createDirectory($dst, isset($options['dirMode']) ? $options['dirMode'] : 0775, true);
        }
 
        $handle = opendir($src);
        if ($handle === false) {
            throw new InvalidParamException("Unable to open directory: $src");
        }</code>
Nach dem Login kopieren
Nach dem Login kopieren

有遇到类似情况的或有解决方法的 同学 提个醒啊 谢谢

回复内容:

用php composer.phar 添加了个扩展 就报这个错误了
上次也遇到过 莫名其妙的好了 好像记得我只清空了web目录下的缓存
可这次却不行了

<code>public static function copyDirectory($src, $dst, $options = [])
    {
        if ($src === $dst || strpos($dst, $src) === 0) {
            throw new InvalidParamException('Trying to copy a directory to itself or a subdirectory.');
        }
        if (!is_dir($dst)) {
            static::createDirectory($dst, isset($options['dirMode']) ? $options['dirMode'] : 0775, true);
        }
 
        $handle = opendir($src);
        if ($handle === false) {
            throw new InvalidParamException("Unable to open directory: $src");
        }</code>
Nach dem Login kopieren
Nach dem Login kopieren

有遇到类似情况的或有解决方法的 同学 提个醒啊 谢谢

重新编辑了AppAsset的sourcePath,就可以了

<code>public $sourcePath = '@webroot/adminlte';
    public $baseUrl = '@web';
    public $css = [
        'dist/css/AdminLTE.min.css',
    ];
    public $js = [
        'dist/js/app.min.js',

    ];</code>
Nach dem Login kopieren
Verwandte Etiketten:
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Aktuelle Ausgaben
PHP-Datenerfassung?
Aus 1970-01-01 08:00:00
0
0
0
PHP-Erweiterung intl
Aus 1970-01-01 08:00:00
0
0
0
Wie man PHP gut lernt
Aus 1970-01-01 08:00:00
0
0
0
Mehrere PHP-Versionen
Aus 1970-01-01 08:00:00
0
0
0
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage