Hi,
I have something like shown below:
class Anon
{
$_dddd = null;
.......
public function _construct()
{ $this->_dddd = DB::getInstance();
}
$check = $this->_dddd->get(.......)
.......
}
$_dddd is holding a SINGLETON object.
When I do above I get following message:
Fatal error: Call to a member function get() on a non-object
Could someone point out the mistake in my code and how to rectify it. Will be very grateful.
I have something like shown below:
class Anon
{
$_dddd = null;
.......
public function _construct()
{ $this->_dddd = DB::getInstance();
}
$check = $this->_dddd->get(.......)
.......
}
$_dddd is holding a SINGLETON object.
When I do above I get following message:
Fatal error: Call to a member function get() on a non-object
Could someone point out the mistake in my code and how to rectify it. Will be very grateful.