I have a radio button list with three options: daily, monthly, weekly. I want a way to access each one individually. For example:
echo $this->formElement($form->get('iteration'));
Will print out all three values, with their labels:
[ ] daily
[ ] monthly
[ ] weekly
I want a way to iterate over all the elements. Something like this:
foreach ($this->formElements($form->get('iteration') as $element) {
echo $this->formElement($element);
}
But that doens't work. Any thoughts?