Hi guys
Thanks to your help I managed to load the page in only 15 queries whereas
before I needed more than 1000 queries. That's great.
However my page load problem hasn't been solved. I've installed xdebug and
it lists this information:
( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in
/....../library/Zend/Form.php on line 2691
Call Stack
# Time Memory Function Location
1 0.0019 76164 {main}( ) ../index.php:0
2 0.0789 3386952 Zend_Controller_Front->dispatch( ) ../index.php:83
3 0.2307 4511976 Zend_Controller_Dispatcher_Standard->dispatch( )
../Front.php:934
4 0.2677 5380956 Zend_Controller_Action->dispatch( )
../Standard.php:285
5 19.1972 37326484
Zend_Controller_Action_HelperBroker->notifyPostDispatch(
) ../Action.php:513
6 19.1974 37326900
Zend_Controller_Action_Helper_ViewRenderer->postDispatch(
) ../HelperBroker.php:276
7 19.1976 37326916
Zend_Controller_Action_Helper_ViewRenderer->render( )
../ViewRenderer.php:962
8 19.2002 37328376
Zend_Controller_Action_Helper_ViewRenderer->renderScript(
) ../ViewRenderer.php:923
9 19.2003 37328772 Zend_View_Abstract->render( )
../ViewRenderer.php:902
10 19.2004 37370344 Zend_View->_run( ) ../Abstract.php:820
11 19.2007 37373764 include(
'...../application/views/scripts/inspecties/add.phtml' ) ../View.php:107
12 19.2009 37374412 Zend_Form->__toString( ) ../Form.php:0
13 19.2009 37374724 Zend_Form->render( ) ../Form.php:2610
14 19.2010 37375352 Zend_Form_Decorator_FormElements->render( )
../Form.php:2595
15 34.7189 43742180 Zend_Form->render( ) ../FormElements.php:100
16 34.7204 43744312 Zend_Form_Decorator_FormElements->render( )
../Form.php:2595
17 34.7224 43747512 Zend_Form->render( ) ../FormElements.php:100
18 34.7237 43750168 Zend_Form_Decorator_FormElements->render( )
../Form.php:2595
19 36.2344 44322728 Zend_Form->render( ) ../FormElements.php:100
20 36.2354 44323920 Zend_Form_Decorator_FormElements->render( )
../Form.php:2595
21 36.2355 44325948 Zend_Form->getTranslator( )
../FormElements.php:80
22 36.2355 44326112 Zend_Form::getDefaultTranslator( )
../Form.php:2677
I guess the problem lies in the form rendering. It makes sense as my page
loads a lot of form elements through a foreach() loop. I'm starting to feel
desperate. Anyone has any tips for me?
--
View this message in context:
http://www.nabble.com/Best-coding-practice--Form-takes-too-long-to-load-now.-tp22309252p22540146.html
Sent from the Zend Framework mailing list archive at Nabble.com.