Hi, I want check database connection in Install website script. I use this code in InstallController But this is slowly. Do you have another solution?
//I use this code in InstallController
try {
$this->db->connect();
$this->view->setVar('db_connect', 1);
//Execute sql backup base database
} catch (\Exception $e) {
$this->view->setVar('db_connect', 0);
//Display view config
}