[eluser]mangpeps[/eluser]
Guys. I tried to create one libraries and it was successful. Problem is when I tried to return variables from the MASTER_Controller libraries, I can't use it. Here is the code. I wounld like to u
se the $header variables in all of my controllers that. Pls help
Code:
<?php
class MASTER_Controller extends Controller{
//public $globaldata['helloworld'] = "THIS STRING IS AVAILABLE TO ANY PAGES";
function MASTER_Controller(){
parent::Controller();
//$this->load->library('encrypt');
$this->load->library('session');
}
function master_login($username,$password){
$header['headlog']=null;
$header['headlogout']=$this->sessioncheck();
$header['headlogout']=TRUE;
return $header;
}