Commit f93076e3 by samdark

Fixes for all template renderers

parent abff8079
...@@ -47,7 +47,7 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer { ...@@ -47,7 +47,7 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer {
// create compiled directory if not exists // create compiled directory if not exists
if(!file_exists($cacheDir)){ if(!file_exists($cacheDir)){
mkdir($cacheDir, $this->filePermission, true); mkdir($cacheDir, $this->filePermission, true);
} }
$this->dwoo = new Dwoo($compileDir, $cacheDir); $this->dwoo = new Dwoo($compileDir, $cacheDir);
...@@ -81,8 +81,11 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer { ...@@ -81,8 +81,11 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer {
// check if view file exists // check if view file exists
if(!is_file($sourceFile) || ($file=realpath($sourceFile))===false) if(!is_file($sourceFile) || ($file=realpath($sourceFile))===false)
throw new CException(Yii::t('yiiext','View file "{file}" does not exist.', array('{file}'=>$sourceFile))); throw new CException(Yii::t('yiiext','View file "{file}" does not exist.', array('{file}'=>$sourceFile)));
//render //render or return
return $this->dwoo->get($sourceFile, $data); if($return)
return $this->dwoo->get($sourceFile, $data);
else
$this->dwoo->get($sourceFile, $data, null, true);
} }
} }
next
----
- Fixed renderFile method (Sam Dark)
0.9.1 0.9.1
[*] Changed translation category to 'yiiext'. -----
[*] New naming conventions. - Changed translation category to 'yiiext'.
[+] readme_ru. - New naming conventions.
[+] Added Yii varialbe. - readme_ru.
[+] Added TIME and MEMORY variables. - Added Yii varialbe.
- Added TIME and MEMORY variables.
0.9 0.9
[+] Initial public release. ---
\ No newline at end of file - Initial public release (Sam Dark)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment