anubis2814, en

Hey guys, is there something special I need to know about using smarty? I'm back to plugging away on the quiz option, trying to make a dynamic radio button that is clickable and returns a value. I have a version using a js file, that works with an HTML document, but I'm having issues integrating it into tpl files with php variables.
html_radios is a smarty option we have that should create dynamic radio buttons. Problem is I can't make it work even though I'm using this smarty.net/docsv2/en/language.… Which is a copy of a md file we have.
I will put something like:

 {html_radios options=$options_title 
        separator='<br />'}

Into the content/question.tpl file
If I run it as normal, it just spits out code as a result in the poll.
If I run something like this in /model/item.php
$smarty->assign('option_title', $option.name)); It always gives me just a white screen.
I want to make sure there isn't some easy fix that I need to do to smarty to make it work right, it might well be I'm just doing it all wrong with my non-professional newb status. If there isn't I'll just keep pluging and chugging til i figure it out. Just wnt to make sure I'm not wasting my time where there is any easy fix

  • Todo
  • Suscrito
  • Moderado
  • Favoritos
  • random
  • developers@forum.friendi.ca
  • noticiascr
  • CostaRica
  • Todos las revistas