 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
Serzhik Smarty Rookie

Joined: 12 Mar 2004 Posts: 16 Location: Kyiv, Ukraine
|
Posted: Fri Mar 12, 2004 1:48 pm Post subject: Change html_radios |
|
|
When I use html_radios I have 1 extra separator at and... It looks like
| Code: |
index.php:
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->assign('values', array("0","1"));
$smarty->assign('output', array('No','Yes'));
$smarty->display('index.tpl');
index.tpl:
{html_radios name=somename values=$values output=$output separator="<br />&" labels=no}
OUTPUT:
<input type="radio" name="somename" value="0">No<br />&
<input type="radio" name="somename" value="1">Yes<br />&
|
So, I think that you must change the function to delete last separator... Cause page looks not so good as I want..
P.S. Sorry for my English... _________________ http://party.com.ua |
|
| 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
|