Welcome Guest, Not a member yet? Register   Sign In
I am creating a new library to codeignighter, seem i cannot use/load helper i've created
#3

[eluser]netameta1[/eluser]
i changed it to this:
Code:
class Udetails{
public $member_session;
public $username;
public $current_uID;
public $member_status;
  
public function __construct(){
                public $member_session = is_member();
         public $username = $member_session['username'];
         public $current_uID = $member_session['id'];
         public $member_status = $member_session['status'];
}


is this the correct way ?

Also how will i get to those variables in other methods afterward ?

Thanks again


Messages In This Thread
I am creating a new library to codeignighter, seem i cannot use/load helper i've created - by El Forum - 10-19-2012, 09:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB