Commit f93076e3 by samdark

Fixes for all template renderers

parent abff8079
......@@ -47,7 +47,7 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer {
// create compiled directory if not exists
if(!file_exists($cacheDir)){
mkdir($cacheDir, $this->filePermission, true);
}
}
$this->dwoo = new Dwoo($compileDir, $cacheDir);
......@@ -81,8 +81,11 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer {
// check if view file exists
if(!is_file($sourceFile) || ($file=realpath($sourceFile))===false)
throw new CException(Yii::t('yiiext','View file "{file}" does not exist.', array('{file}'=>$sourceFile)));
//render
return $this->dwoo->get($sourceFile, $data);
//render or return
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
[*] Changed translation category to 'yiiext'.
[*] New naming conventions.
[+] readme_ru.
[+] Added Yii varialbe.
[+] Added TIME and MEMORY variables.
-----
- Changed translation category to 'yiiext'.
- New naming conventions.
- readme_ru.
- Added Yii varialbe.
- Added TIME and MEMORY variables.
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