0
我正试图将值填入复选框。我想在数据库中存储值时检查复选框。在Zend框架中编辑时将值填入复选框
这是我在表单代码:
$form ['test_1'] = new Zend_Form_Element_Checkbox('test_1');
$form['test_1']->setLabel('test1')->setCheckedValue('1');
$form ['test_2'] = new Zend_Form_Element_Checkbox('test_2');
$form['test_2']->setLabel('test2')->setCheckedValue('2');
如果价值1
在数据库中,我要进行检查的第一个复选框,如果它2
然后第二个复选框,需要进行检查。
我需要在控制器中做什么。
请问谁能帮我解决这个问题。
thanx的回复。 – rasth 2010-11-26 06:44:23
@rasth是否解决了您的问题? – Gordon 2010-11-26 07:50:09