If I look here:

http://www.symfony-project.org/api/1_1/sfForm

Then I read this for the offesetGet method:

offsetGet($name)
Returns the form field associated with the name (implements the
ArrayAccess interface).


Since one of my form fields is called "title" it would make sense that
the code might call offsetGet("title").

But why, then, would I get this error?



Widget "title" does not exist.
stack trace

    * at ()
      in SF_SYMFONY_LIB_DIR/form/sfForm.class.php line 723 ...
             720.     {
             721.       if (!$widget = $this->widgetSchema[$name])
             722.       {
             723.         throw new InvalidArgumentException(sprintf
('Widget "%s" does not exist.', $name));
             724.       }
             725.
             726.       $values = $this->isBound ? $this-
>taintedValues : $this->defaults;
    * at sfForm->offsetGet('title')
      in SF_ROOT_DIR/apps/frontend/modules/newnews/templates/
editSuccess.php line 20 ...
              17.     <tbody>
              18.       <?php echo $form->renderGlobalErrors() ?>
              19.       <tr>
              20.         <th><?php echo $form['title']->renderLabel
() ?></th>
              21.         <td>
              22.           <?php echo $form['title']->renderError() ?
>
              23.           <?php echo $form['title'] ?>
    * at require('/home/lawrence/public_html/bocahoops/apps/frontend/
modules/newnews/templates/editSuccess.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('/home/lawrence/public_html/bocahoops/
apps/frontend/modules/newnews/templates/editSuccess.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('newnews', 'create',
'Success', array(object('NewNewsForm')))
      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
('newnewsActions'), '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/sfRenderingFilter.class.php line
33 ...
              30.   public function execute($filterChain)
              31.   {
              32.     // execute next filter
              33.     $filterChain->execute();
              34.
              35.     if (sfConfig::get('sf_logging_enabled'))
              36.     {
    * 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
250 ...
             247.       }
             248.
             249.       // process the filter chain
             250.       $filterChain->execute();
             251.     }
             252.     else
             253.     {
    * at sfController->forward('newnews', 'create')
      in SF_SYMFONY_LIB_DIR/controller/sfFrontWebController.class.php
line 53 ...
              50.       }
              51.
              52.       // make the first request
              53.       $this->forward($moduleName, $actionName);
              54.     }
              55.     catch (sfException $e)
              56.     {
    * at sfFrontWebController->dispatch()
      in SF_SYMFONY_LIB_DIR/util/sfContext.class.php line 164 ...
             161.    */
             162.   public function dispatch()
             163.   {
             164.     $this->getController()->dispatch();
             165.   }
             166.
             167.   /**
    * at sfContext->dispatch()
      in SF_ROOT_DIR/web/frontend_dev.php line 15 ...[url]http://[/url]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to