Skip to content

Commit ed2447e

Browse files
committed
docs: fix tricky sample code
1 parent 00ef10b commit ed2447e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • user_guide_src/source/database/utilities

user_guide_src/source/database/utilities/001.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
protected $table = 'foo';
55
protected $primaryKey = 'id';
66
};
7-
$db = \Closure::bind(static fn ($model) => $model->db, null, $model)($model);
87

9-
$util = (new \CodeIgniter\Database\Database())->loadUtils($db);
8+
$util = \CodeIgniter\Database\Config::utils();
9+
1010
echo $util->getXMLFromResult($model->get());

0 commit comments

Comments
 (0)