title: how to get site title from database in Main Layout view in codeingiter
body: <p>I have created a script that allows admin to set Site title and site email for his CMS, which gets stored in database. </p>
  
  <p>I my views folder I have <code>_main_layout.php</code> file which is the basic layout of my webiste, I want to fetch that site title from database in main_layout in my nav bar.  </p>
  
  <p>Below is the code where I want that title:</p>
  
  <pre><code>&lt;body&gt;
      &lt;nav class="navbar navbar-inverse"&gt;
      &lt;div class="container-fluid"&gt;
          &lt;div class="navbar-header"&gt;
              &lt;a class="navbar-brand" href="&lt;?php echo site_url('admin/dashboard'); ?&gt;"&gt;&lt;?php echo $meta_title; ?&gt;&lt;/a&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>The meta title here is fetched statically but I want instead <code>site_title</code> to be fetched dynamically from database. </p>
  
  <p>So that admin of CMS can set the site title.</p>