title: How to insert data into table in cakephp?
body: <p>I use this code in my model,</p>
  
  <pre><code>public function registration(){
  $name = 'Foo';
  $city = 'Bar';
  
  $this-&gt;User-&gt;save( 
      array(
          'name' =&gt; $name,
          'city' =&gt; $city
          )
      );
  }   
  </code></pre>
  
  <p>But while inserting get a fatal error </p>
  
  <pre><code>"Error: Call to a member function save() on a non-object
   File: C:\xampp\htdocs\blogs\app\Model\User.php"
  </code></pre>
  
  <p>How to insert it ?</p>