mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
docs: fix factory method name
This commit is contained in:
parent
7e55e4503f
commit
4542dd58fb
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$dbutil = \CodeIgniter\Database\Config::utils();
|
||||
$dbutil = \Config\Database::utils();
|
||||
|
||||
$dbs = $dbutil->listDatabases();
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$dbutil = \CodeIgniter\Database\Config::utils();
|
||||
$dbutil = \Config\Database::utils();
|
||||
|
||||
if ($dbutil->databaseExists('database_name')) {
|
||||
// some code...
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$dbutil = \CodeIgniter\Database\Config::utils();
|
||||
$dbutil = \Config\Database::utils();
|
||||
|
||||
if ($dbutil->optimizeTable('table_name')) {
|
||||
echo 'Success!';
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$dbutil = \CodeIgniter\Database\Config::utils();
|
||||
$dbutil = \Config\Database::utils();
|
||||
|
||||
$result = $dbutil->optimizeDatabase();
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
$db = db_connect();
|
||||
$dbutil = \CodeIgniter\Database\Config::utils();
|
||||
$dbutil = \Config\Database::utils();
|
||||
|
||||
$query = $db->query('SELECT * FROM mytable');
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
$db = db_connect();
|
||||
$dbutil = \CodeIgniter\Database\Config::utils();
|
||||
$dbutil = \Config\Database::utils();
|
||||
|
||||
$query = $db->query('SELECT * FROM mytable');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user