[fw-general] Re: How to set the default decorators for form elements?

2010-01-26 Thread bparise
createElement() by the docs says it should set the default decorators: http://framework.zend.com/issues/browse/ZF-8942 -- View this message in context: http://n4.nabble.com/How-to-set-the-default-decorators-for-form-elements-tp1290314p1310902.html Sent from the Zend Framework mailing list archiv

Re: [fw-general] Overriding Zend_Form::isValid()

2010-01-20 Thread bparise
I need to follow the ZF project more closely! Looking forward to it, thanks. -- View this message in context: http://n4.nabble.com/Overriding-Zend-Form-isValid-tp1018622p1018749.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Overriding Zend_Form::isValid()

2010-01-20 Thread bparise
Thanks for your input! We actually talked about doing that (custom validators) soon after we realized that the isValid() methods were seemingly build *for* validators. Trying to not repeat ourselves by creating custom validators left-and-right, I came up with a neat callback one... _callback = $

[fw-general] Overriding Zend_Form::isValid()

2010-01-20 Thread bparise
How do you effectively override the Zend_Form::isValid() method? Our usage, we have a EditProfileForm that requires a unique email address. Since there are no real built-in validators to handle this, we decided to simply override the Zend_Form::isValid() and manually set the email field as an err

Re: [fw-general] Doctrine Counter Behavior

2010-01-14 Thread bparise
drm-4 wrote: > > bparise wrote: >> Ideally, these could all be under 1 "service" class... this way the >> "models" >> don't have anything defined in them other than the ORM stuff. >> >> ForumService::changeTopic(Post $post, Topic $ne

Re: [fw-general] Doctrine Counter Behavior

2010-01-12 Thread bparise
monk.e.boy wrote: > > > > bparise wrote: >> >> >> For some reason I don't really like imposing this dependency on the Post >> side. Maybe I should decouple it and create a Topic::savePost(Post) that >> takes care of this? >> >>

[fw-general] Doctrine Counter Behavior

2010-01-09 Thread bparise
I was wondering what's the best way to implement a "counter" sort of behavior (doesn't need to actually be a doctrine behavior, just the concept).. I have 2 models... Topics and Posts In topics there is a column Topics.post_count that I want to keep (obviously) the number of posts the topic has.

Re: [fw-general] Rendering Response when Unit Testing Controllers

2010-01-06 Thread bparise
I feel like such a noob... Thanks! Vladas Diržys wrote: > > Maybe you have short_open_tag disabled? > > -- > Regards, > Vladas Diržys > > > On Wed, Jan 6, 2010 at 21:01, bparise wrote: > >> >> I have controller testing with PHPUnit setup, but the

[fw-general] Rendering Response when Unit Testing Controllers

2010-01-06 Thread bparise
I have controller testing with PHPUnit setup, but the response is just rendering the PHP code(not actually rendering the views). request->setMethod('POST')->setPost(array('username' => 'test', 'password' => 'test')); $this->dispatch('/site/login'); // Always results in an error

Re: [fw-general] How long need the CLA

2008-12-12 Thread bparise
FYI, it took me only about 20 minutes after I emailed it to get a response from a Zend staff member confirming it's acceptance. - Brandon Sebastian Hopfe wrote: > > Hi everyone, > > > > I send my CLA over one week ago. > > I doesn't hear anything! How long this process need normaly?! > >