Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Datumsanzeige

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
halloweb
Smarty Regular


Joined: 23 Nov 2004
Posts: 35

PostPosted: Fri Nov 26, 2004 2:06 pm    Post subject: Datumsanzeige Reply with quote

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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Fri Nov 26, 2004 2:16 pm    Post subject: Reply with quote

du hast da evtl. '"' statt '"' im template stehen?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
halloweb
Smarty Regular


Joined: 23 Nov 2004
Posts: 35

PostPosted: Fri Nov 26, 2004 2:28 pm    Post subject: Reply with quote

Danke, es funktioniert ! Very Happy
________
synthetic weed
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP