I am trying to use var $db in config.php file, the $db var is a mysqli class ready I use this line in my config file
$db = new MysqliDb ($dbhost, $dbuser, $dbpass