[eluser]Dam1an[/eluser]
If he header info is constant, you could use one of the partial cacheing libraries which seem to be floating round the forum lately
Alternativly, you could have the header queries done in the constructor (I'd recommend making you're own controller and extending that) and have all the header queries in there
You can then just pass the info array (which must be a class variable, protected if you're using PHP5+)
MY_Controller
Code:
MY_Controller extends Controller {
protected $info;
function __construct() {
parent::Controller();
$this->info['something'] = ... db logic ...
}
}
Someclass
Code:
class Someclass extends MY_Controller {
function index() {
$this->load->view('header', $this->info);
}
}