Re: QFC: Building Forms
| From: | Alexey Borzov | Date: | Fri, 24 Oct 2003 14:03:49 +0000 |
| Subject: | Re: QFC: Building Forms | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8561@lists.php.net to get a copy of this message | ||
Hi!
Mike Carter wrote:
I've discovered why some of my forms in the QFC are taking a while between clicking next/previous. One of my forms calls a webservice to obtain a list of values to display in a 'select' menu element. When I click 'next' on that form, the next form is being processed - BUT - the previous form gets built again, thus calling the webservice again. Why do all forms get compiled everytime you move to the next page? Surely there is a way to optimise this building process? Of maybe there is something I can do to reorganise my code? Would much appreciate any suggestions from experienced QFC users :)Forms are built because QF::exportValues() method needs element objects to work. If the results of this webservice call are not expected to change too often, you can implement some form of caching.