asible create added

This commit is contained in:
CHIEFSOFT\ameye
2025-01-18 19:58:46 -05:00
parent e8d16deefd
commit 03123b9102
5 changed files with 60 additions and 129 deletions
+2 -1
View File
@@ -37,6 +37,7 @@ abstract class BaseController extends Controller
*/
protected $helpers = [];
protected $db;
/**
* Be sure to declare properties for any property fetch you initialized.
* The creation of dynamic property is deprecated in PHP 8.2.
@@ -52,7 +53,7 @@ abstract class BaseController extends Controller
parent::initController($request, $response, $logger);
// Preload any models, libraries, etc, here.
$this->db = \Config\Database::connect();
// E.g.: $this->session = service('session');
}
}