Commit dd454f90 by Hikonobu Kurihara

Fixed

parent e0c2b058
......@@ -71,15 +71,15 @@ class EDwoo2ViewRenderer extends CApplicationComponent implements IViewRenderer
}
/**
* Renders a view file.
* This method is required by {@link IViewRenderer}.
* @param CBaseController the controller or widget who is rendering the view file.
* @param string the view file path
* @param mixed the data to be passed to the view
* @param boolean whether the rendering result should be returned
* @return mixed the rendering result, or null if the rendering result is not needed.
*/
public function renderFile($context,$sourceFile,$data,$return) {
* Renders a view file.
* This method is required by {@link IViewRenderer}.
* @param CBaseController the controller or widget who is rendering the view file.
* @param string the view file path
* @param mixed the data to be passed to the view
* @param boolean whether the rendering result should be returned
* @return mixed the rendering result, or null if the rendering result is not needed.
*/
public function renderFile($context,$sourceFile,$data,$return) {
// current controller properties will be accessible as {this.property}
$data['this'] = $context;
$data['Yii'] = Yii::app();
......@@ -95,9 +95,9 @@ class EDwoo2ViewRenderer extends CApplicationComponent implements IViewRenderer
$compiler->setDelimiters($this->delimiters[0], $this->delimiters[1]);
//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);
}
}
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