1 | <?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
||
3 | class MY_Loader extends CI_Loader { |
||
4 | 96 | public function __construct() { |
|
7 | |||
8 | /** |
||
9 | * Database Loader extension, to load our version of the caching engine |
||
10 | * |
||
11 | * @access public |
||
12 | * |
||
13 | * @param string $params the DB credentials |
||
14 | * @param bool $return whether to return the DB object |
||
15 | * @param bool $active_record whether to enable active record (this allows us to override the config setting) |
||
16 | * |
||
17 | * @return object |
||
18 | */ |
||
19 | 96 | public function database($params = '', $return = FALSE, $active_record = NULL) { |
|
30 | } |
||
31 |
If you suppress an error, we recommend checking for the error condition explicitly: