Welcome Guest, Not a member yet? Register   Sign In
Passing variables to all views.
#4

Thanks for the solution.

I researched about it, and I saw that something like this is possible:
Code:
class MY_Controller extends CI_Controller {
    public function __construct() {
        parent::__construct();

        $globalConfig = array();

        $this->load->vars($globalConfig);
    }
}

And then extending MY_Controller with all my controllers. Will this work?
Reply


Messages In This Thread
Passing variables to all views. - by iM7md - 04-10-2015, 04:40 AM
RE: Passing variables to all views. - by gadelat - 04-10-2015, 07:36 AM
RE: Passing variables to all views. - by CroNiX - 04-10-2015, 08:03 AM
RE: Passing variables to all views. - by iM7md - 04-10-2015, 01:04 PM
RE: Passing variables to all views. - by casa - 04-11-2015, 04:38 AM
RE: Passing variables to all views. - by InsiteFX - 04-11-2015, 04:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB