title: What's a good way to handle post data in Codeigniter?
body: <p>I.e. would you recommend me to use one controller method like this:</p>
  
  <pre><code>function save()
  {
      if(!is_bool($this-&gt;input-&gt;post('')))
      {
          $post_data = $this-&gt;input-&gt;post('');
          $this-&gt;mymodel-&gt;save($post_data);
      }
      $this-&gt;load-&gt;view('myview');
  }
  </code></pre>
  
  <p>Or would you recommend writing it using two methods?</p>
  
  <pre><code>function save()
  {
      if(!is_bool($this-&gt;input-&gt;post('')))
      {
          $post_data = $this-&gt;input-&gt;post('');
          $this-&gt;mymodel-&gt;save($post_data);
      }
      redirect('controller/method2')
  }
  </code></pre>
  
  <p>The redirect is the crucial difference here. It prohibits resubmissions from update for example.</p>
  
  <p>How do you do it? Is there another better way?</p>