0
通常我會成立一個send元素通過以下我如何設置一個Zend形式的ATTRIB的標籤而不是元素
$question = new Zend_Form_Element_Text ("question");
$question->setLabel("Question")
->setAttrib('class', 'bob');
這裏我設置一個類元素周圍而是如何我是否將標籤設置爲標籤?
通常我會成立一個send元素通過以下我如何設置一個Zend形式的ATTRIB的標籤而不是元素
$question = new Zend_Form_Element_Text ("question");
$question->setLabel("Question")
->setAttrib('class', 'bob');
這裏我設置一個類元素周圍而是如何我是否將標籤設置爲標籤?
$label = $element->getDecorator('label');
$label->setOption('class', 'bob');
謝謝,非常完美。 – richie