如何使用dynacmic值在cakephp中进行单选按钮检查

时间:2015-07-10 10:59:06

标签: php cakephp

package pack2;

public class TestClass{

    @Test
    public void test_method1() {
        Object obj = Deencapsulation.newInstance("pack1.ClassToBeTest");
        Deencapsulation.invoke(obj, "method1");
    }
}

1 个答案:

答案 0 :(得分:0)

echo $this->Form->input('Client.brainstorm_question.', 
     array('value' =>'B',
        'hiddenField'=>false,
        'div' => false,
        'legend'=>false,
        'type'=>'radio',
        'options'=>array('1'=>'A','2'=>'B'),
        'label'=>false,
        'class'=>'ml0 form-control'));