Re: Quick Form controler
| From: | arnaud sellenet | Date: | Thu, 30 Nov 2006 08:45:08 +0000 |
| Subject: | Re: Quick Form controler | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25944@lists.php.net to get a copy of this message | ||
Yes, this should work (I'm not sure anymore) :
After adding HTML_QuickForm_Page (s) to your controller (called $wizard here) just update their action attribute :
foreach($wizard->_pages as &$v){
$v->updateAttributes(array('action'=>'Your_Url'));
}
I tell you I'm not sure because since then I've moved to url rewriting making a path type url instead of query string (using [QSA] as a rewrite directive), which is another solution for this issue.
Le 30 nov. 06 à 08:46, Uroš Gruber a écrit :
Hi, I'm trying setting special action attribute of <form tag while using Quick_form wizard. The problem is that i'm using dispatcher file index.php where I decide which page to show for example http://foo.bar/wizard/ but when I klik next script redirects to foo.bar/index.php. I set update attributes in FirstPage class and <form tag is rendered fine, but clicking next always redirects to index file Is it possible to set something else like in Quick_Form constructor. regards Uros --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php