|
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 |
nicolas.ernotte Smarty n00b
Joined: 22 Aug 2003 Posts: 2 Location: Belgium
|
Posted: Fri Aug 22, 2003 6:54 pm Post subject: User Functions don't want to return anything ! |
|
|
All user function I tested (cycle, debug and counter) don't return anything.
exemple :
index.tpl :
<HTML>
<HEAD><TITLE>Test Page</TITLE></HEAD>
<BODY>
Counter : {counter}
</BODY>
</HTML>
output :
Counter :
The only manner to have the correct output is to do this :
index.tpl :
<HTML>
...
<BODY>
{counter assign="count"}
Counter : {$count}
</BODY>
</HTML>
output :
Counter : 1
What's my mistake
Do you have an idea
Thx
PS : Smarty has just been installed on my computer and I didn't create any user function |
|
Back to top |
|
nicolas.ernotte Smarty n00b
Joined: 22 Aug 2003 Posts: 2 Location: Belgium
|
Posted: Fri Aug 22, 2003 10:31 pm Post subject: |
|
|
I've found a solution...
I've re-installed Smarty and that works ! (Maybe an error slipped into the code ???)
Good night
I'll do beautyfull dreams !
@++ |
|
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
|