title: CakePHP Fatal error: Call to a member function create() on a non-object (Controller)
body: <p>I have CakePHP Controller code which is throwing up the following error 'Fatal error: Call to a member function create() on a non-object'.</p>
  
  <p>The controller code is as follows:</p>
  
  <pre><code>if ($this-&gt;request-&gt;is('post')) {
              $this-&gt;MonthlyReturn-&gt;create();
              $this-&gt;MonthlyReturn-&gt;saveField('company_id', $cid);    // Assign current company ID to this monthly return before saving
              if ($this-&gt;MonthlyReturn-&gt;save($this-&gt;request-&gt;data)) {
                  $this-&gt;Session-&gt;setFlash(__('The monthly return has been saved'));
                  $this-&gt;redirect(array('action' =&gt; 'index'));
              } else 
              {
                  $this-&gt;Session-&gt;setFlash(__('The monthly return could not be saved. Please, try again.'));
              }
          }
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>