basetemplate

Base Template class

package

Subsystems-Forms

subpackage

Template

Methods

__construct

__construct( $item_type,  $item_dir,  $view = "Default") 

Arguments

$item_type

$item_dir

$view

Assign a variable to the template.

assign(string $var, mixed $val) 

Arguments

$var

string

The name of the variable - how it will be referenced inside the Smarty code

$val

mixed

The value of the variable.

Render the template and echo it to the screen.

output() 

register_permissions

register_permissions( $perms,  $locs) 

Arguments

$perms

$locs

Render the template and return the result to the caller.

render() : boolean|mixed|string
Throws
\Exception

Response

boolean|mixed|string

Properties

tpl

tpl : 

Type(s)

module

module : 

Type(s)

viewfile

viewfile : 

Type(s)

view

view : 

Type(s)

viewdir

viewdir : 

Type(s)