您好我是zend框架中的新成員。 我想在zend窗體中的輸入框上設置只有屬性。 例如我們在HTML如何在zend窗體中設置只讀屬性添加元素
<input type ="text" readonly="readonly" />
做,這是我的zend代碼:
$this->addElement('text', 'name', array(
'label' => '',
'required' => true,
'filters' => array('StringTrim'),
'style' => array('width:338px'),
'autocomplete' => 'off',
'decorators'=>Array(
'ViewHelper',
'Errors',
),
幫助MEE
做同樣的事情爲收音機工作,在我的代碼中,它似乎沒有 – almaruf