PHP Class PrivateBin\View

Displays the templates
Exibir arquivo Open project: privatebin/privatebin Class Usage Examples

Public Methods

Method Description
assign ( string $name, mixed $value ) : void assign variables to be used inside of the template
draw ( string $template ) : void render a template

Method Details

assign() public method

assign variables to be used inside of the template
public assign ( string $name, mixed $value ) : void
$name string
$value mixed
return void

draw() public method

render a template
public draw ( string $template ) : void
$template string
return void