oop

  1. Markshall

    PHP PDO Singleton usage in other classes

    Right, basically I've got an MySQLi singleton wrapper which I want to use in other classes. It is as follows: <?php class Database extends PDO { public static $instance; private $connection; public function __construct() { $this->connection =...
  2. FirefighterKyle

    [Fixed] Call to a member function getRankMembers() on a non-object

    Okay so I am trying to implement more OOP, but I am getting this error. Here is the codes I am using final public function Initiate() { global $_CONFIG, $officer, $engine, $core, $template; $this->setParams('gameName', $_CONFIG['game']['name'])...
Top