-- Amr Mostafa <[EMAIL PROTECTED]> wrote
(on Thursday, 24 April 2008, 06:06 PM +0200):
> Do you think that adding a 'content' attribute to HtmlTag would be a good way
> to support this?
> 
> I've had this need myself before, but didn't think it's worth it. But I've 
> seen
> this request few times now so thought maybe it's not so bad after all :).

The better idea would be to have the Description decorator on by
default, and make sure it emits no content when the description is empty
-- which is what I plan to do for 1.6.0.


> On Thu, Apr 24, 2008 at 4:47 PM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
> wrote:
> 
>     -- jamest <[EMAIL PROTECTED]> wrote
>     (on Thursday, 24 April 2008, 07:38 AM -0700):
>     > Is there a way to add notes and such within a form?
>     >
>     > I want to be able to add some description text easily readable,
>     preferably
>     > in some <p></p> tags before the text element.
> 
>     use setDescription() (or the 'description' configuration key) to set the
>     text, and then add the 'description' decorator to your element or form.
> 
>     > $form->addElements(array($name_notes,$name));
>     >
>     > So you would ideally get:
>     >
>     > <form....>
>     >
>     > ...
>     > <p>Please enter your full name in the following box.</p>
>     > <dt>Name</dt>
>     > <dd><input .... /></dd>
>     >
>     > ...
>     >
>     > </form>
>     >
>     > Or is there a way to do this that I have missed?
>     >
>     > I am passing the form to the view by using $this->view->form =
>     > $this->getForm();
>     >
>     > So if I continue to do it this way I would need to add the text in 
> within
>     > the form or change the way I pass the form to the view, but I like the
>     way
>     > of padding the whole form over.
> 
>     --
>     Matthew Weier O'Phinney
>     Software Architect       | [EMAIL PROTECTED]
>     Zend - The PHP Company   | http://www.zend.com/
> 
> 
> 
> 
> --
> Amr Mostafa, Head of Software Development, IT Synergy
> [EMAIL PROTECTED] http://itsyn.com
> +(2012)1700502 +(202)35371020

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to