- 109 名前:nobodyさん [2007/12/14(金) 00:07:12 ID:qsT4Ha3J]
- -- actionform
'id' => array( 'form_type' => FORM_TYPE_SELECT, 'type' => array(VAR_TYPE_INT), 'option' => array(1=>'man', 2=>'woman') ) てなときに -- viewclass $this->af->set('id', array(1, 1, 2, 2, 1)); -- template {form_input name="id" emptyoption=""} ってやっても うまくselected="selected"が付いてくれないんだけど FORM_TYPE_SELECTで配列を扱うのは面倒くさいのかしら
|

|