示例#1
0
 protected function getTemplate()
 {
     if ($this->templateFile !== null) {
         return file_get_contents($this->templateFile);
     } else {
         return parent::getTemplate();
     }
 }
示例#2
0
 protected function getTemplate()
 {
     if ($this->templateFile !== null) {
         return parent::getTemplate();
     } else {
         return str_replace('CDbMigration', 'EDbMigration', parent::getTemplate());
     }
 }
 protected function getTemplate()
 {
     if ($this->templateFile !== null) {
         $path = Yii::getPathOfAlias($this->templateFile);
         if (is_file($path . '.php')) {
             return file_get_contents($path . '.php');
         } elseif (is_file($path . '.tpl')) {
             return file_get_contents($path . '.tpl');
         } else {
             $this->templateFile = null;
         }
     }
     return parent::getTemplate();
 }