Welcome Guest, Not a member yet? Register   Sign In
question about libraries..
#1

[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;
}


Messages In This Thread
question about libraries.. - by El Forum - 07-13-2010, 02:48 AM
question about libraries.. - by El Forum - 07-13-2010, 08:52 PM
question about libraries.. - by El Forum - 07-14-2010, 01:52 AM
question about libraries.. - by El Forum - 07-14-2010, 06:48 AM
question about libraries.. - by El Forum - 08-22-2010, 09:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB