메소드 |
설명 |
|
__construct ( array $engines = ['.sword' => 'ManaPHP\Renderer\Engine\Sword', '.phtml' => 'ManaPHP\Renderer\Engine\Php'] ) |
Renderer constructor. |
|
appendSection ( ) : void |
|
|
escape ( string $v ) : string |
|
|
exists ( string $template ) : boolean |
|
|
getSection ( string $section, string $default = '' ) : string |
Get the string contents of a section. |
|
partial ( string $path, array $vars = [] ) : void |
|
|
render ( string $template, array $vars = [], boolean $directOutput = false ) : string |
Checks whether $template exists on registered extensions and render it |
|
startSection ( string $section ) : void |
Start injecting content into a section. |
|
stopSection ( boolean $overwrite = false ) : void |
Stop injecting content into a section. |
|