I think that it would add more flexibility, make things easier and also
separate the view back out or zend_form.
Matthew Weier O'Phinney-3 wrote:
>
> A number of users have reported that they'd like syntax like the following
> in Zend_Form:
>
> <table>
> <tr>
> <td><?= $this->form->foo->renderLabel() ?></td>
> <td>
> <?= $this->form->foo->renderElement() ?>
> <?= $this->form->foo->renderDescription() ?>
> <?= $this->form->foo->renderErrors() ?>
> </td>
> </tr>
> </table>
>
> The idea is that they would like to selectively render specific metadata
> from the element or form.
>
> This could be done fairly easily by using overloading. __call() could
> intercept methods beginning in 'render', and if the remainder of the
> method matches a decorator, would render that decorator.
>
> I've created an issue to track this, and you can view it at:
>
> http://framework.zend.com/issues/browse/ZF-3217
>
> Please comment, if you are interested in the idea.
>
> --
> Matthew Weier O'Phinney
> Software Architect | matthew@zend.com
> Zend - The PHP Company | http://www.zend.com/
>
>
--
View this message in context: http://www.nabble.com/Zend_Form-rendering-enhancement-proposal-tp17103921p20978461.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论