×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 6, 2018 9:26 AM
Views: 2879
  1. //set some global variables in the constructor of your controller and have them become available in any view file loaded from any method.
  2. $this->load->vars($vars, $val);
  3.  
  4. //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().
  5. get_var($key);