|
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 |
brainwave Smarty Rookie
Joined: 09 Jul 2003 Posts: 22
|
Posted: Mon Sep 08, 2003 2:58 pm Post subject: using php class in smarty? |
|
|
Hi,
can I do something like this in smarty tpl files?
Code: |
{if $auth->is_admin()}
<div align="center" valign="bottom"><a href="admin.php" class="font-small" style="color:{#font6#};">Administration</a></div>
{/if}
|
Greetings
Sascha |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Mon Sep 08, 2003 3:56 pm Post subject: |
|
|
Yes, since at least 2.5.0. You can assign objects [it may be better to acutually use assign_by_ref() for objects] to template variables or you can register them using the new API functions. |
|
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
|