Access Parent object PHP

amirdz

New Member
I have class that extends another class.\[code\]class TWITTER_FOLLOWERS extends TWITTER_BOT\[/code\]in TWITTER_FOLLOWERS i want to acces the db object from TWITTER_BOTbut i get just an errorFatal error: Call to a member function fetch_all_array() on a non-object in /var/www/bot/inc/TWITTER_FOLLOWERS.php on line 163On line 163 i have this code \[code\]$results = $this->db->fetch_all_array($q);\[/code\]How can i access the parent object db ?
 
Back
Top