2015-08-24 21 views
0

我是Yii2的新手。 我無法在Gii中生成CRUD代碼。 不斷得到錯誤。錯誤使用Gii的CRUD代碼生成

PHP Warning – yii\base\ErrorException 
mkdir(): File exists 
1. in /var/www/html/yii/basic/vendor/yiisoft/yii2-gii/Generator.php at line 226 
    public function saveStickyAttributes() 
    { 
     $stickyAttributes = $this->stickyAttributes(); 
     $stickyAttributes[] = 'template'; 
     $values = []; 
     foreach ($stickyAttributes as $name) { 
      $values[$name] = $this->$name; 
     } 
     $path = $this->getStickyDataFile(); 
     @mkdir(dirname($path), 0755, true); <------- 226 
     file_put_contents($path, json_encode($values)); 
    } 

什麼可以連接?正確放置文件夾的權利。

環境:

  • 流浪
  • precise64
  • PHP 5.5.26
  • 阿帕奇/ 2.4.12(Ubuntu的)
+0

你必須刪除它所在的現有文件,然後再試一次或者你有更改文件名稱。 –

+0

已刪除的文件模型和視圖 - 它不幫助(( –

+0

)嘗試刪除目錄並重新創建它 –

回答

0

嘗試在php.ini

禁用Xdebug的