|
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 |
halloweb Smarty Regular
Joined: 23 Nov 2004 Posts: 35
|
Posted: Fri Nov 26, 2004 2:06 pm Post subject: Datumsanzeige |
|
|
Code: | {$smarty.now|date_format} |
wird dargestellt !
aber bei
Code: | {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"} |
bekomme ich den Fehlercode
Code: | Fatal error: Smarty error: [in index.tpl line 8]: syntax error: unrecognized tag: $smarty.now|date_format:"%Y-%m-%d %H:%M:%S" (Smarty_Compiler.class.php, line 417) in /srv/www/htdocs/web78/html/libs/Smarty.class.php on line 1088 |
Code: | <body bgcolor="#FFFFFF"> {config_load file=test.conf section="setup"}{include file="header.tpl" title=foo}
<table width="990" border="0">
<tr>
<td height="265" width="36%">
<table width="367" border="0" height="258">
<tr>
<td width="361" height="261" background="3.gif">
<div align="center">{$smarty.now|date_format:&%Y-%m-%d %H:%M:%S&}</div></td>
usw......................................................
</table>
<p>{include file="footer.tpl"}</p> |
Weiss einer von euch wo das Problem liegt ?
Last edited by halloweb on Wed Jul 21, 2010 12:00 am; edited 1 time in total |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Nov 26, 2004 2:16 pm Post subject: |
|
|
du hast da evtl. '"' statt '"' im template stehen? |
|
Back to top |
|
halloweb Smarty Regular
Joined: 23 Nov 2004 Posts: 35
|
|
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
|