(06-26-2017, 10:28 AM)Kaosweaver Wrote: PHP Code:<?phpclass MY_Admin extends CI_Controller {public $me;public function __construct() { parent::__construct(); $this ->load->database(); $this->me = "testing 123"; }} Then in your controller: PHP Code:public function somefunc() { echo $this->me;}
<?phpclass MY_Admin extends CI_Controller {public $me;public function __construct() { parent::__construct(); $this ->load->database(); $this->me = "testing 123"; }}
public function somefunc() { echo $this->me;}