title: Values not inserted into my table in cakephp
body: <p>app/controller/CarrierController.php</p>
  
  <p>here i am inserting to database table but not inserted and shows Unable to add your Details</p>
  
  <p>database table fields id(auto increment ),fname,lname,dob,field,gender </p>
  
  <pre><code>class CarrierController extends AppController {
  public $helpers = array('Html', 'Form', 'Session');
      public $components = array('Session');
  
  
      var $uses=array('Carrier');
      public function index(){
      //  $this-&gt;set('posts', $this-&gt;carrier-&gt;find('all'));
          if($this-&gt;request-&gt;is('post')){
               Configure::read();
          pr($this-&gt;data); 
              $this-&gt;Carrier-&gt;create();
  
               if ($this-&gt;Carrier-&gt;save($this-&gt;request-&gt;data)) {
                  $this-&gt;Session-&gt;setFlash(__('Your Details has been saved.'));
                   return $this-&gt;redirect(array('action' =&gt; 'index'));
              } else {
                  $this-&gt;Session-&gt;setFlash(__('Unable to add your Details'));
              }
              }
          }
  
  }
  </code></pre>
  
  <p>app/view/Carrier/index.ctp</p>
  
  <pre><code>&lt;h1&gt;welcome to Carriers&lt;/h1&gt;
  &lt;br /&gt;
  &lt;br/&gt;
  &lt;?php echo $this-&gt;Form-&gt;create('Carriers', array('enctype' =&gt; 'multipart/form-data'));?&gt;
  &lt;table&gt;
  &lt;tr&gt;&lt;h3&gt;Register here&lt;/h3&gt;&lt;/tr&gt;
  
  &lt;tr&gt;&lt;td&gt;F.Name&lt;/td&gt;&lt;td&gt;&lt;?php echo $this-&gt;Form-&gt;text('fname'); ?&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;L.Name&lt;/td&gt;&lt;td&gt;&lt;?php echo $this-&gt;Form-&gt;text('lname');?&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Date Of Birth&lt;/td&gt;&lt;td&gt;&lt;?php echo $this-&gt;Form-&gt;date('dob');?&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Degree&lt;/td&gt;&lt;td&gt;&lt;?php echo $this-&gt;Form-&gt;select('field', array('options' =&gt; array('B.E','B.sc','Mca','Mtech','Mba'),'empty' =&gt; '(choose)')); ?&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Sex&lt;/td&gt;&lt;td&gt;&lt;?php
  $options=array('M'=&gt;'Male','F'=&gt;'Female');
  $attributes=array('legend'=&gt;false);
  echo $this-&gt;Form-&gt;radio('gender',$options,$attributes);
  ?&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;&lt;?php echo $this-&gt;Form-&gt;input('Carriers.Resume', array('between'=&gt;'&lt;br /&gt;','type'=&gt;'file'));?&gt;&lt;/td&gt;&lt;/tr&gt;
  
  &lt;tr&gt;&lt;td&gt;&lt;?php echo $this-&gt;Form-&gt;end('Apply');?&gt;&lt;/td&gt;&lt;/tr&gt;
  
  
  
  &lt;/table&gt;
  </code></pre>
  
  <p>app/model/Carrier.php</p>
  
  <pre><code>&lt;?php 
  class Carrier extends AppModel{
  
      public $useTable='carrier'; //this is table name fields are inserted 
      }
  ?&gt;
  </code></pre>