Welcome Guest, Not a member yet? Register   Sign In
post_controller_constructor hook not loading $this->session
#2

[eluser]bubbafoley[/eluser]
If you're using CI 2.0 it should look like this:

Code:
class Application extends CI_Controller {
    /*
     * The application controls logic which is global to the entire application and not on any specific page.
     */
    public function __construct() {
        parent::__construct();
        $this->load->library('session');
        print_r($this->session);
        exit;
    }
}

What is that hook supposed to be doing? It's looking for a function preController() in application/controllers/application.php which doesn't appear to exist.


Messages In This Thread
post_controller_constructor hook not loading $this->session - by El Forum - 03-14-2011, 12:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB