title: CodeIgniter: $data access in all views
body: <p>I need to access $data[] variables in whole site, in all views. I created TestLeangue controller and assign some values to $data but in all views say that variable is not defined</p>
  
  <pre><code>    class TestLanguage extends MY_Controller
  {
      public function __construct() {
          parent::__construct();
          $this-&gt;lang-&gt;load("menu","english");
      }
  
      function index() {
          $data['shipping'] = $this-&gt;lang-&gt;line('menu_shipping');
          $this-&gt;load-&gt;view('templates/navigation', $data);
      }
  }
  </code></pre>
  
  <p>I echo and say that I have undefined variable.</p>
  
  <pre><code>&lt;?= $shipping; ?&gt;
  </code></pre>