Commit 6ecd5050 by Hikonobu Kurihara

Updated

parent d0e4bfc2
......@@ -79,10 +79,17 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer {
if(!is_file($sourceFile) || ($file=realpath($sourceFile))===false)
throw new CException(Yii::t('yiiext','View file "{file}" does not exist.', array('{file}'=>$sourceFile)));
// edit by nakao from
// Create the compiler instance
$compiler = new Dwoo_Compiler();
$compiler->setAutoEscape(true);
$compiler->setDelimiters('{{', '}}');
//render or return
if($return)
return $this->dwoo->get($sourceFile, $data);
else
$this->dwoo->get($sourceFile, $data, null, true);
if ($return)
return $this->dwoo->get($sourceFile, $data, $compiler);
else
$this->dwoo->get($sourceFile, $data, $compiler, true);
// edit by nakao to
}
}
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