title: controller always loads index, never the method in the url
body: <p>I'm trying to create a 'double opt-in' subscribe sequence. I have the single form taking the individuals email, adding it the the database and then email with a confirmation link (<code>[base url]/controller/confirmEmail/[email hash]</code>). Once the user clicks the link  its supposed to take them to the same page as the form, but instead of the form, it should load a small success page.</p>
  
  <p>All of this is done via one controller and one model. Im not sure if I should split the work into 2 controllers or not. But here is the code for the specific method that gets called in the link:</p>
  
  <pre><code>public function confirmEmail($hash) {
      $this-&gt;load-&gt;model('email_model');
      $email = $this-&gt;email_model-&gt;confirm_email($hash);
      if($email){
          $data['email'] = $email;
          $data['include'] = "confirmSuccess.php";
      } else {
          $data['include'] = "confirmFailure.php";
      }
      $this-&gt;load-&gt;view('working_view', $data); 
  }
  </code></pre>
  
  <p><code>$this-&gt;email_model-&gt;confirm_email($hash)</code> calls the model to try and update the status on the email in the database and returns the email if successful, false otherwise. </p>
  
  <p>The <code>$data['include']</code> is for the small section that changes for various status changes (like adding to database, displaying the form, successful confirmation). in the <code>index</code> function, is when the form is displayed but setting the <code>$data['include']</code> there. But when the link is clicked in the email, the form is displayed instead of the 2 php pages set in the method above. </p>
  
  <p>This has had me scratching my head for a good bit now. Not sure why the index is being loaded if the method loads the view on its own. Any help would be appreciated. </p>