Add the replacement property in the HTML renderer
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1250 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -18,6 +18,8 @@ class renderer
|
||||
public $viewMethod = FALSE;
|
||||
/** Filename in views containing the HTML layout. Without .html at the end */
|
||||
public $layout = FALSE;
|
||||
/** Array to replace */
|
||||
public $replacement = array();
|
||||
|
||||
/** Display the $this->result result in the output model defined by
|
||||
$this->output */
|
||||
@@ -29,7 +31,8 @@ class renderer
|
||||
$reflection = new ReflectionMethod ($class, "out");
|
||||
$res = $reflection->invokeArgs (new $class,
|
||||
array ($this->result, $this->title,
|
||||
$this->viewClass, $this->viewMethod, $this->layout));
|
||||
$this->viewClass, $this->viewMethod, $this->layout,
|
||||
$this->replacement));
|
||||
echo $res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user