RE: [PEAR] QFC validation

From: Date: Mon, 27 Oct 2003 07:56:07 +0000
Subject: RE: [PEAR] QFC validation
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8604@lists.php.net to get a copy of this message
Hi! > The code doesn't look as a good idea to me, as container is > used to store values > in session and now you store the whole Action object in it. > Why not just use > global variables? OK ... That's right - global variables have a bad reputation - that's why I wanted to avoid that - but in this case ... > > Maybe it would be a good idea to make it easier to have more than 1 > > Button that goes through validation ... > > I don't quite see the problem here. Create your own action > handlers with form > validation logic, add them via addAction() with any names you > like, bind them to > buttons via getButtonName(). Am I missing something? I am missing something ... I don't know how to get validation in the Action (as process does it without my notice) and I still don't know whether the validation is the whole difference between 'submit'-bound-action and others. Now I guess that's it. For the custom-Buttons: Do I use Action-Objects or still Action_Suibmit? Regards Daniel

« previous php.pear.general (#8604) next »