title: Within Codeigniter, how do I write a view file to a view file?
body: <p>I have a thank_you.php file that simply contains the string "Thank you." formatted in a successful / green color.</p>
  
  <p>I'm wanting to display this text on a specific region of the site, but not sure how to go about it. Within my main view file, I added the line: </p>
  
  <pre><code>&lt;?php $this-&gt;template-&gt;add_region('success'); ?&gt;
  </code></pre>
  
  <p>next to the "Submit" button. </p>
  
  <p>Within my controller, I have a function that should, once called, display the view file "thank_you.php". </p>
  
  <pre><code>function greeter_thank_you() {
  $this-&gt;template-&gt;write_view('success', 'thank_you.php');
  }
  </code></pre>
  
  <p>I have the standard $alert, $content, $main, etc... regions within my Template file, but how do I echo this view file onto another view file? Is there some other way I need to go about it?</p>