mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-08 00:56:52 +01:00
This commit is contained in:
@@ -42,6 +42,11 @@ class ModuleCode extends CCodeModel
|
||||
{
|
||||
if(CFileHelper::getExtension($file)==='php')
|
||||
$content=$this->render($file);
|
||||
else if(basename($file)==='.yii') // an empty directory
|
||||
{
|
||||
$file=dirname($file);
|
||||
$content=null;
|
||||
}
|
||||
else
|
||||
$content=file_get_contents($file);
|
||||
$this->files[]=new CCodeFile(
|
||||
|
||||
Reference in New Issue
Block a user