Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Carlos Luciano Garcia Zeman
Added: Oct 19, 2018 11:24 AM
Views: 6
Tags: no tags
Radiolist en PHP
  1. <?=
  2.     Html::radioList("Ofertas[]", null, ArrayHelper::map($ofertas, 'IdOfertaEvento', 'OfertaEvento'), ['class' => 'radiolist',
  3.     'item' => function($index, $label, $name, $checked, $value)
  4.     {
  5.         $return = '<label>';
  6.         $return .= '<input type="radio" name="' . $name . '" value="' . $value . '">';
  7.         $return .= '<span>' . ucwords($label) . '</span>';
  8.         $return .= '</label>';
  9.         return $return;
  10.     }])
  11. ?>
  12.  
Comments disabled