2009年4月9日星期四

Re: [fw-mvc] Zend_Form and custom labels

Thanks!

-Hector


On Thu, Apr 9, 2009 at 9:16 AM, Matthew Weier O'Phinney <matthew@zend.com> wrote:
-- Hector Virgen <djvirgen@gmail.com> wrote
(on Thursday, 09 April 2009, 09:04 AM -0700):
> Hello,
>
> Is it possible to add a <span> or other tag inside of the <label> in
> Zend_Form_Decorator_Label? For example I need a label like this:
>
> <label for="my_input">My Label<span>extra info</span></label>

Yes -- pass the 'escape' option to the decorator, with a boolean false.

--
Matthew Weier O'Phinney
Software Architect      | matthew@zend.com
Zend Framework          | http://framework.zend.com/


没有评论: