get_config(); R::setup("mysql:host={$config['database-hostname']};dbname={$config['database-name']}", "{$config['database-u-ser']}", "{$config['database-password']}"); // R::debug(TRUE, 2); $this->_con = R::getToolBox(); } /** * Get Instance * * @return mixed */ public static function get_instance() { if (self::$instance == null) { self::$instance = new MySqlAdapter(); } return self::$instance; } /** * Get Connection * * @return mixed */ public function get_connection() { return $this->_con; } }