Hello Folks,
I was working on database password encryption in config.php file and wanted to extend MysqliManager.php file under include/database to custom/include/database/CustomMysqliManager.php but whenever I am replacing 'MysqliManager' in 'db_manager' to 'CustomMysqliManager', it is giving error and application is not loading.
PHP Fatal error: Call to a member function setOptions() on null in project\test\include\database\DBManagerFactory.php on line 133
I have done this before in 7.6 but currently I am working on 7.8.2.0 and I am not sure if anything has changed in this version or if I need to define my custom class in any other location as well.
I even tried with following but no luck.
require_once('include/database/MysqliManager.php');
class CustomMysqliManager extends MysqliManager
{
public function __construct()
{
parent::__construct();
}
}
Any help would be greatly appreciated.
Regards.
Hats