{method(arguments,#quoted arguments#)} -- creates a PHP method call, and echos the results
Beschreibung
creates an PHP method call, any with any number of arguments, as variables or
literals (quoted in #). the return value is echoed, and passed by a modifier (like
variables)
No Modifier - does htmlspecialchars($variable)
:h - echos without any change - eg. raw
:u - echos urlencode($variable)
Beispiel
Beispiel 42-1. Including another template class example_page {
var $masterTemplate = "master.html";
var $bodyTemplate = "body.html";
function ucfirst($string) {
return ucfirst($string);
}
function includeBody() {
$template = new HTML_Template_Flexy();
$template->compile($this->bodyTemplate);
$template->outputObject($this);
}
} |
|