Dear Matthew,
When experimenting with Zend_Form, I was unable to figure out how
several of the helpers worked.
Could you assist me on the following:
- How do I generate multiple check/radio buttons with the same name
attribute, and different values?
- How do i use the Select element?
Another question:
currently, in my view i have to do:
<?php echo $this->form->render($this); ?>
note the $this. Wouldn't it be more conventient to use the
HelperBroker, and check for the current view if $view === null?
Best,
Andries Seutens
Matthew Weier O'Phinney schreef:
-- Andries Seutens <[EMAIL PROTECTED]> wrote
(on Monday, 07 January 2008, 06:25 PM +0100):
[EMAIL PROTECTED] schreef:
Firstly:
Read the sense about an abstract class and fix this issue(UserModel:26)
$form = new Zend_Form_Abstract();
I know what abstract classes are for, but since Zend_Form_Abstract has no
abstract methods, i see no reason why i can't instantiate it directly, just
for the sake of this demo. This isn't a production application, so who
cares.
Just a note: there *will* be a concrete Zend_Form class extending
Zend_Form_Abstract in the final version.
Secondly:
Why don't you use Zend_Layout?
Why don't I use Smarty, Flexy, or whatever?
I don't see your point here?
One other note: by default, Zend_Form will use Zend_View helpers for
rendering, which may be incompatible with some templating systems.
However, you will be able to extend the element classes to override the
render() method to perform any logic you want for rendering.
Thirdly:
Cut off the default Zend library, for the users and the traffic limit :)
Sorry for my bad criticism, but I found nothing really 'impressive'.
It's more or less a copy of the demo in the lab put inside a simple
working app.
Try do improve this example with some features, where people can say: wow,
thank you for this tip.
Best regards
Instead of just giving bad criticism, let me know what you'd like to see.
What are you expecting from Zend_Form, do you have use cases of stuff that
currently isn't in the proposal? I've wrapped this demo up to see what
Zend_Form offers in it's current (very early stages), and to hopefully
provide valueable feedback to Matthew.
I agree with Andries: if you have criticism, be as specific as possible.
Vague criticism does not help the development process. I need something
I can reproduce or write a use case for. :-)