The way I handle forms is like this:

<table>
  <tr>
    <td><?=$firstname->renderLabel()?></td>
    <td><?=$firstname->renderViewHelper()?><br />
      <?=$firstname->renderErrors()?></td>
  </tr>
  …etc…

</table>

Except I wouldn't be using tables, but fieldsets and divs instead.

Cheers,
David


On 29/09/11 07:10, Christof Coetzee wrote:
> ...here is a simple example of what I'm struggling with, would appreciate if
> someone can show me how to do this with decorators the easy way.
>
> thanks in advance.
>
> <table>
>   <tr>
>     <td>firstnameLabel</td>
>     <td>firstnameTextField<br />
>       firstnameErrorMessage</td>
>   </tr>
>   <tr>
>     <td>emailLookupButton</td>
>     <td>emailLookupLabel
>       <br />
>       emailLookupTextField
>       <br />
>     emailLookupErrorMessage    </td>
>   </tr>
>   <tr>
>     <td>ageLabel</td>
>     <td>
>     <table style="float:right">
>       <tr>
>         <td>ageMonthSelectField</td>
>         <td>ageYearSelectField</td>
>       </tr>
>     </table>
>     </td>
>   </tr>
> </table>
>
> --
> View this message in context: 
> http://zend-framework-community.634137.n4.nabble.com/Over-engineered-Zend-Form-Decorators-help-tp3850650p3853335.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>


-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to