Add the variables support to the renderer : we can send datas variable to the view and the view can manage them. The Search/Replacement feature continue to be available
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1531 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -18,8 +18,10 @@ class renderer
|
||||
public $viewMethod = FALSE;
|
||||
/** Filename in views containing the HTML layout. Without .html at the end */
|
||||
public $layout = FALSE;
|
||||
/** Array to replace */
|
||||
/** Array to search/replace */
|
||||
public $replacement = array();
|
||||
/** Array to variable definition */
|
||||
public $variable = array ();
|
||||
|
||||
/** Display the $this->result result in the output model defined by
|
||||
$this->output */
|
||||
@@ -32,7 +34,7 @@ class renderer
|
||||
$res = $reflection->invokeArgs (new $class,
|
||||
array ($this->result, $this->title,
|
||||
$this->viewClass, $this->viewMethod, $this->layout,
|
||||
$this->replacement));
|
||||
$this->replacement, $this->variable));
|
||||
echo $res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user