gehe zur Dokumentation dieser Datei
89 $this->config_data[
'sections'] = array();
90 $this->config_data[
'vars'] = array();
103 $this->
template->properties[
'file_dependency'][$this->
template->source->uid] = array($this->template->source->name, $this->template->source->timestamp, $this->template->source->type);
105 if ($template->source->content ==
'') {
108 if ($this->smarty->debugging) {
112 $lex =
new $this->lexer_class(str_replace(array(
"\r\n",
"\r"),
"\n", $template->source->content) .
"\n", $this);
115 if (function_exists(
'mb_internal_encoding') && ((
int) ini_get(
'mbstring.func_overload')) & 2) {
116 $mbEncoding = mb_internal_encoding();
117 mb_internal_encoding(
'ASCII');
122 if ($this->smarty->_parserdebug) {
126 while (
$lex->yylex()) {
127 if ($this->smarty->_parserdebug) {
128 echo
"<br>Parsing {$parser->yyTokenName[$lex->token]} Token {$lex->value} Line {$lex->line} \n";
136 mb_internal_encoding($mbEncoding);
138 if ($this->smarty->debugging) {
142 $template_header =
"<?php /* Smarty version " .
Smarty::SMARTY_VERSION .
", created on " . strftime(
"%Y-%m-%d %H:%M:%S") .
"\n";
143 $template_header .=
" compiled from \"" . $this->
template->source->filepath .
"\" */ ?>\n";
145 $code =
'<?php Smarty_Internal_Extension_Config::loadConfigVars($_smarty_tpl, ' . var_export($this->config_data,
true) .
'); ?>';
164 $line = $this->lex->line;
168 $match = preg_split(
"/\n/", $this->lex->data);
169 $error_text =
"Syntax error in config file '{$this->template->source->filepath}' on line {$line} '{$match[$line - 1]}' ";
172 $error_text .= $args;
175 foreach ($this->parser->yy_get_expected_tokens($this->parser->yymajor) as $token) {
176 $exp_token = $this->parser->yyTokenName[$token];
177 if (isset($this->lex->smarty_token_names[$exp_token])) {
179 $expect[] =
'"' . $this->lex->smarty_token_names[$exp_token] .
'"';
182 $expect[] = $this->parser->yyTokenName[$token];
186 $error_text .=
' - Unexpected "' . $this->lex->value .
'", expected one of: ' . implode(
' , ', $expect);
Sie sind hier: Home » MyOOS Benutzerhandbuch » Smarty
Korrekturen, Hinweise und Ergänzungen
Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag
Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.