|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
EuroCent Smarty n00b
Joined: 04 Jun 2014 Posts: 1
|
Posted: Wed Jun 04, 2014 11:48 am Post subject: {php}-Tags verwenden |
|
|
Smarty-Version: 3.1.18
Laut der Dokumentation kann man PHP-Blöcke verwenden!
Jedoch wenn ich es tue bekomme Ich diese meldung:
Quote: | Fatal error: Uncaught --> Smarty Compiler: Syntax error in template ".\templates\index.tpl" on line 5 "{php}" unknown tag "php" <-- thrown in C:\xampp\htdocs\TheBank\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 5 |
Code: | {php}
echo "test";
{/php} |
Wie kann ich nun den PHP-Tag verwenden, oder gibt es da eine andere Methode?
Sorry bin in sachen Smarty noch sehr Neu :/ |
|
Back to top |
|
Grizzly Smarty Pro
Joined: 15 Apr 2011 Posts: 172 Location: Germany
|
Posted: Wed Jun 04, 2014 1:35 pm Post subject: |
|
|
Wenn du schon die Doku liest, solltest du vllt die "Wichtig"-Rubrik nicht unbeachtet lassen:
Quote: | {php} tags are deprecated from Smarty, and should not be used. Put your PHP logic in PHP scripts or plugin functions instead. |
Und dann noch die "Hinweis"-Rubrik:
Quote: | As of Smarty 3.1 the {php} tags are only available from SmartyBC. |
Quelle: http://www.smarty.net/docs/en/language.function.php.tpl |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|