When using CodeIgniter views, I put information to be parsed in under a model $this->data (title/description, dynamically changed menu, view-only user info and so forth) and loads the views invariably with that second parameter.
I would like to know if it is possible to pass $this->data by default when loading a view, so that $this->load->view('header')
means the same as $this->load->view('header',$this->data)
without having to change the core. Hooks maybe?
It is simply a manner of efficiency in coding rather than a necessity.