|
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 |
Shirox Smarty n00b
Joined: 23 Mar 2004 Posts: 1
|
Posted: Tue Mar 23, 2004 11:38 pm Post subject: [lost] Need an example pliz :) |
|
|
Hi everybody, and excuse my for my english, i'm french, and don't write english so often :p.
I've read the whole faq in my language at least 4 or 5 times, but I still don't understand. I want smarty to work like the template engine of phpBB, so, no use of {if} {/if} inside the tpl page, or other thing like that.
Just CSS and smarty tag {smarty}.
bt i dunno who I can do that
Here i a part of my tpl code :
Quote: | <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" valign="top">&</td>
<td valign="top"><br>
<div align="justify">
<?php
if ($maintenance == "oui") { print("blah blah.</div>"); }
else { navigation($Section) }
?>
</div></td>
<td width="10" valign="top" class="page-droit"></td>
</tr>
</table> |
what did I have to do, and where I have to do it replace the php code in my tpl by a smarty tag ?
Will doing it had a bad influence on the server performance ?
I thank a lot thos who will eventually answer, and say good day
PS : I think it will be cool to have specifier forum for each language, at least one section for "francais" and "deutch". Because I haven't found any forum that make support of smarty in my language |
|
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
|