[fw-general] Re: [fw-mvc] How to make Zend Form post submitting Ajaxy

2010-07-03 Thread Abraham Block
http://jquery.malsup.com/form/ On Sat, Jul 3, 2010 at 2:27 PM, Enkhbilguun Erdenetsogt < enkhbilg...@beregu.com> wrote: > Hello, > > I'm building an admin interface, which has jQuery ajaxLink() navigation. If > I hit some creating new content link, navigation will show a create form to > content

[fw-general] How to test file uploads

2009-11-19 Thread Abraham Block
I'm overriding isValid in my form to add on a subform for any uploaded files that are coming in (because i'm allowing an arbitrary number of files, the amount which cannot be known before). I need to test that when a file is uploaded that a subform gets added. Since $_FILES have not been abstracted

[fw-general] FormErrors with on a subform with setElementsBelongTo

2009-10-25 Thread Abraham Block
I have a form with a subform, and the setElementsBelongTo is *not* equal to the name of the subform. Something like this: $form = new Zend_Form(); $form->addElement('text', 'textfield', array('required' => true, 'label' => 'Field from form')); $sf = new Zend_Form_SubForm(); $sf->addElement('text

[fw-general] Zend_Form_Element_File and Subforms with array notation

2009-10-17 Thread Abraham Block
I've noticed that the File decorator ignores the fully qualified name for the element, which rids me of the array notation. When I attempted to change the code from $name = $element->getName(); to $name = $element->getFullyQualifiedName();My form doesn't validate anymore.

[fw-general] Looping through a class with Zend_Reflection_Class::getMethods()

2009-08-04 Thread Abraham Block
I'm trying to write an action helper which uses docblocks as an annotation, but if I loop through the methods and on each one call getDocblock, an exception will be thrown. But I'm in a catch-22 because I can't know which methods have one and which ones don't. This leads me to create a really ugly

[fw-general] Re: [fw-auth] Zend_Acl fixes in trunk for assertions ZF-1721 & ZF-1722

2009-07-31 Thread Abraham Block
Seems to work like a champ, Ralph! On Fri, Jul 31, 2009 at 11:06 AM, Ralph Schindler wrote: > Hi all, > > I have supplied a fix in trunk for issues ZF-1721 and ZF-1722. This is a > long standing issue that affects developers who wish to write non-trivial > assertions. If anyone is interested, h

[fw-general] Re: [fw-mvc] - Where to put common DB calls

2009-07-29 Thread Abraham Block
I would suggest either to use a DAO pattern to encapsulate all your database calls in a well known area, or to read in your queries from some kind of configuration file (a "named query") approach. This will help from having SQL queries spread like an infestation of ants. Is there anything specific

[fw-general] Re: [fw-auth] Re: [fw-general] Problem with Zend_Acl

2009-06-14 Thread Abraham Block
I wrote a workaround on my blog http://www.aviblock.com/blog/2009/03/19/acl-in-zend-framework/#comments On Sun, Jun 14, 2009 at 5:54 AM, Mon Zafra wrote: > Ooops, read the date incorrectly. It's actually 23 months old :p > >-- Mon > > > > On Sun, Jun 14, 2009 at 5:52 PM, Mon Zafra wrote: >