Method | Description | |
---|---|---|
appendScript ( string $path, string $type = 'text/javascript' ) | Append a script to the script array. | |
appendStyleSheet ( string $path ) | Appends a stylesheet to the stylesheet array. | |
assign ( array $data, string $root = 'Ctrl' ) | Assign variables to the view. | |
getAssignedData ( ) : array | Get a list of assigned view data. | |
getAutoload ( ) : boolean | Get the state of view template auto load. | |
getMeta ( ) : array | Get the meta list. | |
getMetaHtml ( ) : string | Get the meta list as html tags. | |
getScripts ( ) : array | Get the script list. | |
getScriptsHtml ( ) : string | Get the script list as html tags. | |
getStyleSheets ( ) : array | Get the stylesheet list. | |
getStyleSheetsHtml ( ) : string | Get the stylesheet list as html tags. | |
getTemplate ( ) : string | Get the assigned view template. | |
getTitle ( ) : string | Get the current page title. | |
getTitleHtml ( ) : string | Get the current page title as html tag. | |
prependScript ( string $path, string $type = 'text/javascript' ) | Prepends a script to the script array. | |
prependStyleSheet ( string $path ) | Prepends a stylesheet to the stylesheet array. | |
setAutoload ( boolean $autoload ) | Set the view template auto load. | |
setMeta ( string $name, string $content ) | Set a html meta tag. | |
setTemplate ( string $template ) | Set the view template file. | |
setTitle ( string $title ) | Set the page title. |
public appendScript ( string $path, string $type = 'text/javascript' ) | ||
$path | string | Path to the script. It can be relative path to the Public/static folder or a full http path. |
$type | string | Script type, default is 'text/javascript'. |
public appendStyleSheet ( string $path ) | ||
$path | string | Path to the stylesheet. It can be relative path to the Public/static folder or a full http path. |
public getAssignedData ( ) : array | ||
return | array |
public getAutoload ( ) : boolean | ||
return | boolean |
public getMetaHtml ( ) : string | ||
return | string |
public getScriptsHtml ( ) : string | ||
return | string |
public getStyleSheets ( ) : array | ||
return | array |
public getStyleSheetsHtml ( ) : string | ||
return | string |
public getTemplate ( ) : string | ||
return | string | Path to the view template. |
public getTitleHtml ( ) : string | ||
return | string |
public prependScript ( string $path, string $type = 'text/javascript' ) | ||
$path | string | Path to the script. It can be relative path to the Public/static folder or a full http path. |
$type | string | Script type, default is 'text/javascript'. |
public prependStyleSheet ( string $path ) | ||
$path | string | Path to the stylesheet. It can be relative path to the Public/static folder or a full http path. |
public setAutoload ( boolean $autoload ) | ||
$autoload | boolean | Should the view template file be auto loaded or not. |
public setTemplate ( string $template ) | ||
$template | string | Path to template file. |