title: data is saved twice to the database
body: <p>Here is my code:</p>
  
  <pre><code>public function actionPostTest()
  {
  
      if(isset($_POST['Test']))
      {
          $model = new Test();
          $model-&gt;attributes = $_POST['Test'];
          if($model-&gt;save())
          {
              $this-&gt;redirect('postTest');
          }
      }
  
      $this-&gt;render('posttest', array('model'=&gt;new Test()));
  }
  </code></pre>
  
  <p>This is saving the data which coming from a form twice to the database.</p>
  
  <p>What is wrong?</p>