sometimes: extends a custom formElement that renders html. You can call this
element "text" - "rawHtml" or something similar. Create the formEelement,
the viewHelper, decorators etc.... It is much more work but once it is done,
you can uses it in any project.
Thinking on it, it will be a good feature to include in newer versions of
ZF.
On 19/08/2008 09:47, "Gordon Ross" <gr306@ucs.cam.ac.uk> wrote:
> Using descriptors isn't applicable in this case.
>
> Thanks anyway.
>
> GTG
>
> ----- Original Message -----
> From: Oscar Reales <oreales@gmail.com>
> To: fw-mvc@lists.zend.com <fw-mvc@lists.zend.com>
> Sent: Tue Aug 19 08:37:48 2008
> Subject: Re: [fw-mvc] Include raw HTML into Zend_Form
>
> If you want to include a "text" or "description" of an element in the middle
> of a form, you can use the "description" property that all form elements
> have. Theoretically, if an element has a description, this description will
> be rendered (with default decorators) between the field and the errors
> block.
>
> Take a look to the Reference and API to know more.
>
>
> On 18/08/2008 15:20, "Gordon Ross" <gr306@ucs.cam.ac.uk> wrote:
>
>> Is it possible to include raw HTML into a Zend_Form ? I know you can append
>> & prepend HTML to a tag, but I want to include a chunck of text (with a
>> little HTML mark-up) in the middle of a form.
>>
>> What's the best way to do this ?
>>
>> Thanks,
>>
>> GTG
>>
>
>
没有评论:
发表评论