[fw-general] Zend_Form without MVC problem

2008-05-21 Thread Paul Cook
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

Re: [fw-general] Zend_Form without MVC problem

2009-04-10 Thread drj201
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

Re: [fw-general] Zend_Form without MVC problem

2009-04-10 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Zend_Form without MVC problem

2009-04-13 Thread drj201
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

Re: [fw-general] Zend_Form without MVC problem

2009-04-13 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Zend_Form without MVC problem

2009-04-13 Thread Mon Zafra
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

Re: [fw-general] Zend_Form without MVC problem

2009-04-13 Thread Mon Zafra
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

Re: [fw-general] Zend_Form without MVC problem

2008-05-21 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Zend_Form without MVC problem

2009-12-04 Thread pablofmorales
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.