how to make arrays global? |
[eluser]ajsie[/eluser]
i wonder how you can make an array global to all controllers? so that you can have one array and use it for all views like: $this->load->view('header', $header) regards ajsie
[eluser]eoinmcg[/eluser]
extend the Controller class: http://ellislab.com/codeigniter/user-gui...aries.html Replacing Native Libraries with Your Versions in MY_Controller Code: class MY_Controller extends Controller Code: $this->header;
|
Welcome Guest, Not a member yet? Register Sign In |