//set some global variables in the constructor of your controller and have them become available in any view file loaded from any method.
$this->load->vars($vars,$val);
//This method checks the associative array of variables available to your views. This is useful if for any reason a var is set in a library or another controller method using $this->load->vars().