« Return to Thread: valid html issue

Re: valid html issue

by jasonistaken :: Rate this Message:

Reply to Author | View in Thread

This was covered a day or two ago:
http://framework.zend.com/issues/browse/ZF-3323

Greg Donald wrote:

> I'm using
>
> <?php echo $this->doctype( 'XHTML1_STRICT' ); ?>
>
> in my layout.  Then I'm creating a form like this:
>
> $form = new Zend_Form;
> $form->setAction( '/user/signup' )->setMethod( 'post' );
> $form->addElement( new Zend_Form_Element_Text( 'username' ) );
>
> which creates an input field that's missing the closing slash near the end:
>
> <input type="text" name="username" id="username" value="">
>
> Is there anything else I'm supposed to do to get valid html?
>
>
> Thanks,
>
>
>  

 « Return to Thread: valid html issue