|
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 |
Real1tySucks Smarty n00b
Joined: 03 Mar 2014 Posts: 1
|
Posted: Mon Mar 03, 2014 6:07 pm Post subject: Smarty function |
|
|
Hello ! I have some question.
I have 3 files, header.tpl, index.tpl, footer.tpl
header.tpl
Code: |
{function name=test}
<b>TEST</b>
{/function}
{test}
|
index.tpl
Code: | {include "header.tpl"}
{test}
{include "footer.tpl"} |
footer.tpl
Function call works in header and footer, but in index - it gives me error "Unknown Tag". I also tried to create file like functions.tpl and place function in it, then include that file and call function, but it fails in every file.
Can you help me with this? Thanks ) |
|
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
|