cheechm Posted November 12, 2007 Share Posted November 12, 2007 Hi, I am using Smarty (->smarty.php.net) and I want to show this: printf($lang['users_online'],'$total_online_users'); How would I assign that with smarty using this: $template->assign('TOTAL_USERS_ONLINE, 'what the above outputs); Thanks Quote Link to comment Share on other sites More sharing options...
aschk Posted November 12, 2007 Share Posted November 12, 2007 Simple : $template->assign('TOTAL_USERS_ONLINE' , sprintf($lang['users_online'],$total_online_users)); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.