Welcome Guest, Not a member yet? Register   Sign In
How do I make a database row be a global?
#3

I've worked on extending a core class to do this in core/Before.php


Code:
<?php
class Before extends MY_Admin {

public function __construct()
    {
            parent::__construct();
            $this ->load->database();  
            $data['me'] = "testing 123";
            exit();

    }
    exit();
}

The website does not terminate despite the 2 exit() existing. I have a controller in controllers/Admin.php with a class called Admin.

When I try to echo $me in the view, I get an error saying that $me is undefined.

Please help.
Reply


Messages In This Thread
RE: How do I make a database row be a global? - by desbest - 06-26-2017, 08:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB