I dont know if this is possible but when executing a function how do I know the name which object is going to be called after __construct through __construct.
<?
class SmallPortal extends CI_Controller {
    public function __construct(){
        parent::__construct();
        if($this->session->is_login()==true) {
        //put my sessions in an array
        } else { 
        //if not login page redirect to login page...
        }
    } //end __construct
    public function index(){
        //member page       
    }    
    public login(){
    //LOOP
    }
} 
?>
 
     
    