title: CodeIgniter - displaying success or unsuccess message
body: <p>Im wondering if someone could let me know how they handle success / unsuccess messages in CodeIgniter.</p>
  
  <p>For example, what im doing at the moment when a user signs up to my site, this is what happens in the controller</p>
  
  <pre><code>if (!is_null($data = $this-&gt;auth-&gt;create_user( $this-&gt;form_validation-&gt;set_value('username'), $this-&gt;form_validation-&gt;set_value('password') ))) {
      // Redirect to the successful controller
      redirect( 'create-profile/successful' );
  } else {
      // Redirect to the unsuccessful controller
      redirect( 'create-profile/unsuccessful' );
  }
  </code></pre>
  
  <p>Then in the same controller (create-profile), i have 2 methods which are like the following</p>
  
  <pre><code>function successful()
  {
      $data['h1title'] = 'Successful Registration';
      $data['subtext'] = '&lt;p&gt;Test to go here&lt;/p&gt;';
  
      // Load the message page
      $this-&gt;load-&gt;view('message',$data);
  }
  </code></pre>
  
  <p>The problem with this is that i can simply go to site.com/create-profile/successful and it will show the page.</p>
  
  <p>If someone could possibly show me a better way of handling this, it would be greatly appreciated.</p>
  
  <p>Cheers,</p>