YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* sfWidgetFormSelectRadioでULにしない [#ydd52c86]
sfWidgetFormSelectRadioをテンプレート内でrender()するとUL...
class PrivateTeamForm extends BasePrivateTeamForm
{
public function configure() {
$this->widgetSchema['sex'] = new sfWidgetFormSel...
'choices' => array(1 => '男性', 2 => '女性...
'formatter' => array($this, 'radioFormatter...
));
}
public function radioFormatterCallback($widget, $inp...
{
$rows = array();
foreach ($inputs as $input) {
$rows[] = $widget->renderContentTag('span',...
}
return !$rows ? '' : implode('<br />', $rows);
}
}
** 参考 [#u8dc73c8]
http://stackoverflow.com/questions/3291373/how-to-display...
終了行:
* sfWidgetFormSelectRadioでULにしない [#ydd52c86]
sfWidgetFormSelectRadioをテンプレート内でrender()するとUL...
class PrivateTeamForm extends BasePrivateTeamForm
{
public function configure() {
$this->widgetSchema['sex'] = new sfWidgetFormSel...
'choices' => array(1 => '男性', 2 => '女性...
'formatter' => array($this, 'radioFormatter...
));
}
public function radioFormatterCallback($widget, $inp...
{
$rows = array();
foreach ($inputs as $input) {
$rows[] = $widget->renderContentTag('span',...
}
return !$rows ? '' : implode('<br />', $rows);
}
}
** 参考 [#u8dc73c8]
http://stackoverflow.com/questions/3291373/how-to-display...
ページ名: