1
Hello
this is Simple Code i use , it Prints Ball Image equal to $image Value ..
if $image=3 that mean the Image will be printed 3 times ..
i need to assing it to Smarty to use it in template.
$image =2;
for($i=1;$i<=$image; $i++){
echo '.XOOPS_ROOT_PATH.'/modules/test/images/ball.png" />';
}
i could do it by Number Just like
$xoopsTpl->assign('image', $image);
this will print the Number .. but i need to print out the Image . so i tried something like
$xoopsTpl->assign('image', '.XOOPS_ROOT_PATH.'/modules/test/images/ball.png" alt="" />');
but this printed Out only One image regards to $image Value..
any idea?
Thx