Re: Quick Form controler

From: Date: Thu, 30 Nov 2006 08:51:36 +0000
Subject: Re: Quick Form controler
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25945@lists.php.net to get a copy of this message
arnaud sellenet wrote:
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. I solved it with adding own constructor for every page and call new HTML_QuickFoorm with proper action. It's ugly but it works.
Thanks anyway. regards Uros
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
--PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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