File tree Expand file tree Collapse file tree 3 files changed +30
-3
lines changed
user_guide_src/source/database Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 1- #########
2- Utilities
3- #########
1+ ######################
2+ Database Utility Class
3+ ######################
44
55The Database Utility Class contains methods that help you manage your database.
66
77.. contents ::
88 :local:
99 :depth: 2
1010
11+ ******************************
12+ Initializing the Utility Class
13+ ******************************
14+
15+ Load the Utility Class as follows:
16+
17+ .. literalinclude :: utilities/002.php
18+ :lines: 2-
19+
20+ You can also pass another database group to the DB Utility loader, in case
21+ the database you want to manage isn't the default one:
22+
23+ .. literalinclude :: utilities/003.php
24+ :lines: 2-
25+
26+ In the above example, we're passing a database group name as the first
27+ parameter.
28+
29+ ****************************
30+ Using the Database Utilities
31+ ****************************
1132
1233Export a Query Result as an XML Document
1334========================================
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ $ dbutil = \CodeIgniter \Database \Config::utils ();
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ $ dbutil = \CodeIgniter \Database \Config::utils ('group_name ' );
You can’t perform that action at this time.
0 commit comments