hey all.. i got a simple question had a application i made and worked perfectly on the old PHP but now with the changes to OOP in php5 im getting a error
my problem is i have a function in a class and $this is my object (example: $this->username ..etc.)
my problem is that right now $this is empty and i have another object i pull from the cookies.. that has all the user info username id password etc.. this object is called $main_cookie it contains
$main_cookie->username ...password.. id..
any how my syntax use to just be
$this=$main_cookie;
now all the values and veriables are merged
but now a Error is returned so my main question is, is their a way to do this without doing this
$this->password=$main_cookie->password;
$this->username=$main_cookie->username;
....etc..
thanks 🙂