0
我想提出這樣一個:Zend Framework:如何訂購裝飾者正確?
<div><input type="checkbox" /> <label>Check this</label></div>
但不喜歡這樣:
<div><label>Check this</label><input type="checkbox" /></div>
我試着這樣做:
$stayInSystem->addDecorators(array(
'ViewHelper',
array('Label'),
array(array('row' => 'HtmlTag'), array('tag' => 'div',)),
))->setLabel('Check this');
在此先感謝
當你試圖這樣做時發生了什麼? – 2011-02-14 19:54:26