title: save not working properlly
body: <p>controller</p>
  
  <p>userdetails.php</p>
  
  <pre><code>class Controller_Userdetails extends Controller { 
      public function action_index() {
          $view = new View('userdetails/index');
          $this-&gt;response-&gt;body($view);
      }
       public function action_add() {//load adddetails.php
          $userdetails = new Model_Userdetails();         
          $view = new View('userdetails/adddetails');
          $view-&gt;set("userdetails", $userdetails);         
          $this-&gt;response-&gt;body($view);
      }
      public function action_post() {//save the post data
          $userdetails_id = $this-&gt;request-&gt;param('id');
          $userdetails = new Model_Userdetails($userdetails_id);
          $userdetails-&gt;values($_POST);       
          $userdetails-&gt;save();          
          $this-&gt;request-&gt;redirect('index.php/userdetails'); 
      }
  
  }
  </code></pre>
  
  <p>views</p>
  
  <p>adddetails.php</p>
  
  <pre><code>&lt;?php echo Form::open('userdetails/post/'.$userdetails-&gt;id); ?&gt;
      &lt;?php echo Form::label("first_name", "First Name"); ?&gt;
      &lt;?php echo Form::input("first_name", $userdetails-&gt;first_name); ?&gt;
      &lt;br /&gt;    
      &lt;?php echo Form::label("last_name", "Last Name"); ?&gt;
      &lt;?php echo Form::input("last_name", $userdetails-&gt;last_name); ?&gt;
      &lt;br /&gt;
      &lt;?php echo Form::label("email", "Email"); ?&gt;
      &lt;?php echo Form::input("email", $userdetails-&gt;email); ?&gt;
      &lt;br /&gt;
      &lt;?php echo Form::submit("submit", "Submit"); ?&gt;
  &lt;?php echo Form::close(); ?&gt;
  </code></pre>
  
  <p>I am trying to insert the data into database.The name and email field are loading correctly,if i enter values and hit enter it is redirecting to other page but objects not saved in database.Need help to solve this.</p>