I'm trying to use components of the Framework in a project that currently is
not MVC. Eventually I'd like to refactor to MVC but that is not possible
right now.
I'm using Zend_Form and ran into an error that I can't figure out. I'm
trying to use the ViewScript decorator and I've read through the
Hello,
I am having the same problem as first outlined in this thread.
The solution Matthew posted does not work. Can anyone help?
Thanks,
David
Matthew Weier O'Phinney-3 wrote:
>
> -- Paul Cook wrote
> (on Wednesday, 21 May 2008, 02:00 PM -0400):
>> I'm trying to use components of the Fra
-- drj201 wrote
(on Friday, 10 April 2009, 06:14 AM -0700):
> I am having the same problem as first outlined in this thread.
>
> The solution Matthew posted does not work. Can anyone help?
Can you provide more information? How are you setting up your form, what
kind of view object are you using
Hi Matthew,
Thank you for your quick reply. I am using Zend_Form in an almost identical
fashion as outlined in the original post of this thread.
I have a class My_Form that extends Zend_Form. My_Form constructs the form
elements as well as setting up the form to use a ViewScript i.e.:
$this->se
-- drj201 wrote
(on Monday, 13 April 2009, 01:04 PM -0700):
> Thank you for your quick reply. I am using Zend_Form in an almost identical
> fashion as outlined in the original post of this thread.
>
> I have a class My_Form that extends Zend_Form. My_Form constructs the form
> elements as well as
If I'm not mistaken, the form's view is not propagated into its elements
unless there's a FormElements or PrepareElements in its decorator list. So
either add PrepareElements or manually loop through each element and call
setView($view) on them.
-- Mon
On Tue, Apr 14, 2009 at 4:04 AM, drj201
Ah, sorry, I missed that part about you trying Matthew's custom setView()
method. In that case, I have no idea what's happening.
-- Mon
On Tue, Apr 14, 2009 at 9:49 AM, Mon Zafra wrote:
> If I'm not mistaken, the form's view is not propagated into its elements
> unless there's a FormElement
-- Paul Cook <[EMAIL PROTECTED]> wrote
(on Wednesday, 21 May 2008, 02:00 PM -0400):
> I'm trying to use components of the Framework in a project that currently is
> not MVC. Eventually I'd like to refactor to MVC but that is not possible
> right
> now.
>
> I'm using Zend_Form and ran into an err
So easy...
$form = new Forms_YouForm();
$view = new Zend_View();
$form->setView( $view );
echo $form;
--
View this message in context:
http://n4.nabble.com/Zend-Form-without-MVC-problem-tp657457p948679.html
Sent from the Zend Framework mailing list archive at Nabble.com.