diff --git a/renderer.php b/renderer.php index faccc7f..f57b4d1 100644 --- a/renderer.php +++ b/renderer.php @@ -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; }