In your _form.php you have the following line: <li><?php echo $form['estado_reservacion']->renderLabel(), $form['estado_reservacion'] ?></li>
It is trying to access the widget which does not exists anymore and therefore throwing the error. 2009/5/12 Reynier Perez Mira <[email protected]> > > > Can you paste trace of the error? > Sure ... > > # at () > in SF_SYMFONY_LIB_DIR\form\sfForm.class.php line 956 ... > > 953. { > 954. if (!$widget = $this->widgetSchema[$name]) > 955. { > 956. throw new InvalidArgumentException(sprintf('Widget "%s" > does not exist.', $name)); > 957. } > 958. > 959. if ($this->isBound) > > # at sfForm->offsetGet('estado_reservacion') > in SF_ROOT_DIR\apps\frontend\modules\reservacion\templates\_form.php line > 33 ... > > 30. <li><?php echo $form['desayuno']->renderLabel(), > $form['desayuno'] ?></li> > 31. <li><?php echo $form['almuerzo']->renderLabel(), > $form['almuerzo'] ?></li> > 32. <li><?php echo $form['comida']->renderLabel(), > $form['comida'] ?></li> > 33. <li><?php echo $form['estado_reservacion']->renderLabel(), > $form['estado_reservacion'] ?></li> > 34. <li><?php echo > $form['id_complejo_comedor']->renderLabel(), $form['id_complejo_comedor'] > ?></li> > 35. <li><?php echo $form['fecha_entrada']->renderLabel(), > $form['fecha_entrada'] ?></li> > 36. <li><?php echo $form['fecha_salida']->renderLabel(), > $form['fecha_salida'] ?></li> > > # at > require('D:\Server\www\residencia\apps\frontend\modules\reservacion\templates\_form.php') > in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ... > > 74. // render > 75. ob_start(); > 76. ob_implicit_flush(0); > 77. require($_sfFile); > 78. > 79. return ob_get_clean(); > 80. } > > # at > sfPHPView->renderFile('D:\Server\www\residencia\apps\frontend\modules/reservacion/templates/_form.php') > in SF_SYMFONY_LIB_DIR\view\sfPartialView.class.php line 110 ... > > 107. $this->getAttributeHolder()->set('sf_type', 'partial'); > 108. > 109. // render template > 110. $retval = > $this->renderFile($this->getDirectory().'/'.$this->getTemplate()); > 111. } > 112. catch (Exception $e) > 113. { > > # at sfPartialView->render() > in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 218 ... > > 215. $view = new $class($context, $moduleName, $actionName, ''); > 216. $view->setPartialVars($vars); > 217. > 218. return $view->render(); > 219. } > 220. > 221. /** > > # at get_partial('form', array(object('TbReservacionForm'))) > in SF_SYMFONY_LIB_DIR\helper\PartialHelper.php line 180 ... > > 177. */ > 178. function include_partial($templateName, $vars = array()) > 179. { > 180. echo get_partial($templateName, $vars); > 181. } > 182. > 183. /** > > # at include_partial('form', array(object('TbReservacionForm'))) > in SF_ROOT_DIR\apps\frontend\modules\reservacion\templates\newSuccess.php > line 15 ... > > 12. <br/> > 13. <?php endif; ?> > 14. <?php //if ($mostrar = true): ?> > 15. <?php include_partial('form', array('form'=>$form)) ?> > 16. <?php //endif; ?> > > # at > require('D:\Server\www\residencia\apps\frontend\modules\reservacion\templates\newSuccess.php') > in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 77 ... > > 74. // render > 75. ob_start(); > 76. ob_implicit_flush(0); > 77. require($_sfFile); > 78. > 79. return ob_get_clean(); > 80. } > > # at > sfPHPView->renderFile('D:\Server\www\residencia\apps\frontend\modules/reservacion/templates/NewSuccess.php') > in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 174 ... > > 171. $this->attributeHolder->set('sf_type', 'action'); > 172. > 173. // render template file > 174. $content = > $this->renderFile($this->getDirectory().'/'.$this->getTemplate()); > 175. > 176. if (sfConfig::get('sf_cache') && !is_null($uri)) > 177. { > > # at sfPHPView->render() > in SF_SYMFONY_LIB_DIR\filter\sfExecutionFilter.class.php line 153 ... > > 150. break; > 151. > 152. case sfView::RENDER_CLIENT: > 153. $viewData = $view->render(); > 154. $this->context->getResponse()->setContent($viewData); > 155. break; > 156. > > # at sfExecutionFilter->executeView('reservacion', 'New', 'Success', > array(object('TbReservacionForm'))) > in SF_SYMFONY_LIB_DIR\filter\sfExecutionFilter.class.php line 114 ... > > 111. return; > 112. } > 113. > 114. $this->executeView($actionInstance->getModuleName(), > $actionInstance->getActionName(), $viewName, > $actionInstance->getVarHolder()->getAll()); > 115. } > 116. > 117. /** > > # at sfExecutionFilter->handleView(object('sfFilterChain'), > object('reservacionActions'), 'Success') > in SF_SYMFONY_LIB_DIR\filter\sfExecutionFilter.class.php line 47 ... > > 44. $timer->addTime(); > 45. $timer = sfTimerManager::getTimer(sprintf('View "%s" for > "%s/%s"', $viewName, $actionInstance->getModuleName(), > $actionInstance->getActionName())); > 46. > 47. $this->handleView($filterChain, $actionInstance, > $viewName); > 48. > 49. $timer->addTime(); > 50. } > > # at sfExecutionFilter->execute(object('sfFilterChain')) > in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 53 ... > > 50. } > 51. > 52. // execute the next filter > 53. $this->chain[$this->index]->execute($this); > 54. } > 55. } > 56. > > # at sfFilterChain->execute() > in SF_SYMFONY_LIB_DIR\filter\sfCommonFilter.class.php line 29 ... > > 26. public function execute($filterChain) > 27. { > 28. // execute next filter > 29. $filterChain->execute(); > 30. > 31. // execute this filter only once > 32. $response = $this->context->getResponse(); > > # at sfCommonFilter->execute(object('sfFilterChain')) > in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 53 ... > > 50. } > 51. > 52. // execute the next filter > 53. $this->chain[$this->index]->execute($this); > 54. } > 55. } > 56. > > # at sfFilterChain->execute() > in SF_SYMFONY_LIB_DIR\filter\sfBasicSecurityFilter.class.php line 62 ... > > 59. } > 60. > 61. // the user has access, continue > 62. $filterChain->execute(); > 63. } > 64. > 65. /** > > # at sfBasicSecurityFilter->execute(object('sfFilterChain')) > in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 53 ... > > 50. } > 51. > 52. // execute the next filter > 53. $this->chain[$this->index]->execute($this); > 54. } > 55. } > 56. > > # at sfFilterChain->execute() > in SF_SYMFONY_LIB_DIR\filter\sfRenderingFilter.class.php line 33 ... > > 30. public function execute($filterChain) > 31. { > 32. // execute next filter > 33. $filterChain->execute(); > 34. > 35. // get response object > 36. $response = $this->context->getResponse(); > > # at sfRenderingFilter->execute(object('sfFilterChain')) > in SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 53 ... > > 50. } > 51. > 52. // execute the next filter > 53. $this->chain[$this->index]->execute($this); > 54. } > 55. } > 56. > > # at sfFilterChain->execute() > in SF_SYMFONY_LIB_DIR\controller\sfController.class.php line 245 ... > > 242. } > 243. > 244. // process the filter chain > 245. $filterChain->execute(); > 246. } > 247. else > 248. { > > # at sfController->forward('reservacion', 'New') > in SF_SYMFONY_LIB_DIR\controller\sfFrontWebController.class.php line 48 ... > > 45. } > 46. > 47. // make the first request > 48. $this->forward($moduleName, $actionName); > 49. } > 50. catch (sfException $e) > 51. { > > # at sfFrontWebController->dispatch() > in SF_SYMFONY_LIB_DIR\util\sfContext.class.php line 159 ... > > 156. */ > 157. public function dispatch() > 158. { > 159. $this->getController()->dispatch(); > 160. } > 161. > 162. /** > > # at sfContext->dispatch() > in SF_ROOT_DIR\web\frontend_dev.php line 13 ... > > Ing. Reynier Pérez Mira > Dirección Técnica IP > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
