title: Call to a member function bind() on a non-object in
body: <p>my action.class.php</p>
  
  <pre><code> if ($this-&gt;getRequest()-&gt;getMethod() == sfRequest::GET) {
                   $this-&gt;formShoppingList = new ShoppingListForm(array(
                          'shoppinglist' =&gt; $items,
                              ), array('shoppinglist_id' =&gt; $list_id));
  }
  
      if ($request-&gt;isMethod('post')) {
          $this-&gt;formShoppingList-&gt;bind($request-&gt;getParameter('shoppinglist'));
       print_r($this-&gt;fromShoppingList;
      }
  </code></pre>
  
  <p>My lib/ShoppingListForm.php:</p>
  
  <pre><code>&lt;?php
  
  class ShoppingListForm extends BaseForm {
  
  public function configure() {
      $shoppinglist_id = $this-&gt;getOption('shoppinglist_id');
  
      $this-&gt;setWidgets(array(
          'shoppinglist' =&gt; new sfWidgetFormTextarea(array(), array('rows' =&gt; '10', 'cols' =&gt; '35')),
          'action_id' =&gt; new sfWidgetFormInputHidden(array()),
          'list_id' =&gt; new sfWidgetFormInputHidden(array(),array('value' =&gt; $shoppinglist_id)),
      ));
  
      $this-&gt;widgetSchema-&gt;setLabels(array(
          'shoppinglist' =&gt; '',
      ));
  
  
      $this-&gt;setValidators(array(
          'shoppinglist' =&gt; new sfValidatorString(array('max_length' =&gt; 5000), array(
              'required' =&gt; 'ShoppingList is empty.'
  
          )),
  
          'action_id' =&gt; new sfValidatorString(array('required' =&gt; false)),
          'list_id' =&gt; new sfValidatorString(array('required' =&gt; false))
  
      ));
  
      $this-&gt;widgetSchema-&gt;setNameFormat('shoppinglist[%s]');
  
      gfFormHelper::addRequiredToLabel($this);
  }
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>When I submit the form, the error is coming up:</p>
  
  <blockquote>
    <p>Fatal error: Call to a member function bind() on a non-object in....</p>
    
    <p>Tampa-Data:
        shoppinglist%5Bshoppinglist%5D=liste+15%0D%0A
        shoppinglist%5Baction_id%5D=1
        shoppinglist%5Blist_id%5D=15</p>
  </blockquote>
  
  <p>Why? Solution?</p>