I am using $data in all my views $this->load->view(\'my_view\', $data);
$this->load->view(\'my_view\', $data);
I have also autoload a Controller following this guide Exten
Rather than making the view data global, I'd recommend using HMVC to build a module to produce this sidebar view. HMVC is a nice clean way of coding partial views.