HTML_QuickForm_Controller & Zend Framew ork: setting the form ‘action’ attribute

From: Date: Fri, 09 Nov 2007 03:45:44 +0000
Subject: HTML_QuickForm_Controller & Zend Framew ork: setting the form ‘action’ attribute
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28168@lists.php.net to get a copy of this message
I'm trying to get HTML_QuickForm_Controller (multi-page forms) to work with the Zend Framework Zend_Controller (mvc controller using apache rewrite). I was able to get the basic HTML_QuickForm package and Zend Framework 1.0.2to work together using: http://blog.case.edu/gps10/2006/03/17/using_zend_framework_smarty_and_quickform_to_quickly_deploy_php_applications Getting multi-page forms to work using HTML_QuickForm_Controller has not been successful. Outside of the zend framework, it works fine. Inside the zend framework, I'm having problems with advancing to the second page because it brings me to the application home page instead of the HTML_quickform_controller page. This is probably because the Zend_controller funnels all requests to the application home page using rewrites. The form's 'action' attribute contains the application home page instead of the HTML_quickform_controller page. I'm trying to find the place in the code where the form's 'action' attribute is set. It appears that it should be HTML_QuickForm_Page constructor which calls HTML_QuickForm with an empty 'action' attribute. But changing that attribute to fixed value (just to see if it works) does not affect the resulting form that is generated. Anyone have any idea about how to set the form's 'action' attribute? Thanks, Dennis Fogg

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