Class Renderer
Simple buffer-based view renderer.
Will search for template files in the configured template dir first,
and then fallback to the current theme directory.
Methods summary
public
|
#
__construct( string $templateDir )
Constructor.
Parameters
- $templateDir
- Template directory
|
public
string
|
#
render( string $filename, array $vars = array() )
Renders a template file.
Assigns all $var keys to $this->$key for us in template.
Parameters
- $filename
- Full-filename
- $vars
- View variables
Returns
string Rendered view
Throws
|
public
mixed
|
#
__get( string $name )
Magic getter, for getting view variables.
Magic getter, for getting view variables.
Parameters
Returns
mixed View variable, or null if not set
|