프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_autoConfig | array | These configuration variables will automatically be assigned to their corresponding protected properties when the object is initialized. | |
$_classes | array | File's dependencies. These classes are used by the output handlers to generate URLs for dynamic resources and static assets, as well as compiling the templates. | |
$_compile | boolean | Boolean flag indicating whether templates should be pre-compiled before inclusion. For more information on template compilation, see view\Compiler. | |
$_data | array | An array containing the variables currently in the scope of the template. These values are manipulable using array syntax against the template object, i.e. $this['foo'] = 'bar' inside your template files. | |
$_paths | |||
$_vars | Variables that have been set from a view/element/layout/etc. that should be available to the same rendering context. |
메소드 | 설명 | |
---|---|---|
__construct ( array $config = [] ) : void | Constructor. | |
offsetExists ( string $offset ) : boolean | Allows checking to see if a value is set in template data. | |
offsetGet ( string $offset ) : mixed | Gets the offset, or null in the template data. | |
offsetSet ( string $offset, mixed $value ) : void | Sets the offset with the given value. | |
offsetUnset ( string $offset ) : void | Unsets the given offset. | |
render ( string $template, array | string $data = [], array $options = [] ) : string | Renders content from a template file provided by template(). | |
template ( string $type, array $params ) : string | Returns a template file name |
메소드 | 설명 | |
---|---|---|
_paths ( string $type, array $params ) : string | Searches one or more path templates for a matching template file, and returns the file name. |
public __construct ( array $config = [] ) : void | ||
$config | array | Configuration options. |
리턴 | void |
public offsetExists ( string $offset ) : boolean | ||
$offset | string | Key / variable name to check. |
리턴 | boolean | Returns `true` if the value is set, otherwise `false`. |
public offsetUnset ( string $offset ) : void | ||
$offset | string | Key / variable name to check. |
리턴 | void |
protected array $_autoConfig | ||
리턴 | array |
protected array $_classes | ||
리턴 | array |
protected bool $_compile | ||
리턴 | boolean |
protected array $_data | ||
리턴 | array |