title: Setting page title from content file in CodeIgniter (MVC)
body: <p>My CodeIgniter website's controller is set up like this:</p>
  
  <pre><code>$this-&gt;load-&gt;view('head', $data); // Contains &lt;head&gt; stuff
  $this-&gt;load-&gt;view('header', $data); // Nav and sidebars
  $this-&gt;load-&gt;view($this-&gt;uri-&gt;segment(1), $data); // Main page content
  $this-&gt;load-&gt;view('footer', $data); // Footer
  </code></pre>
  
  <p>My question is about where to store <code>&lt;title&gt;</code> tag's content. Ideally it would be with the page content (the 3rd loaded view) but then how do you get that into the <code>&lt;title&gt;</code> tag which has been loaded in the first view? </p>
  
  <p>I've read that it's bad to have JavaScript set the title as it won't be compatible with search engine bots.</p>
  
  <p>I've also read a suggestion which said to have a large view file with all the pag</p>