| $factory->setRequired() (Previous) | (Next) {method(arguments,#quoted arguments#)} | ||||
| |
|||||
|
|||||
creates PHP code to echo a variable, with optional modifier. Modifiers are
No Modifier - does htmlspecialchars($variable)
:h - echos without any change - eg. raw
:u - echos urlencode($variable)
by default variables are assumed to have calling scope, and are prefixed with $t->, however if they are inside a loop (foreach), then the variables created by the loop are added to the scope and the prefix is not added.
Przykład 43-1. setting an object variable
|
Przykład 43-2. Outputting the variable
|
Przykład 43-3. Compiled template
|
Przykład 43-4. Simple ouput example
|
| $factory->setRequired() (Previous) | (Next) {method(arguments,#quoted arguments#)} | ||||||||
| |
|||||||||
|
|||||||||