File tree Expand file tree Collapse file tree
user_guide_src/source/database Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ########################
1+ #########
22Utilities
3- ########################
3+ #########
44
55The Database Utility Class contains methods that help you manage your database.
66
@@ -9,10 +9,11 @@ The Database Utility Class contains methods that help you manage your database.
99 :depth: 2
1010
1111*******************
12- Get XML FROM Result
12+ Get XML from Result
1313*******************
1414
15- **getXMLFromResult() **
15+ getXMLFromResult()
16+ ==================
1617
1718This method returns the xml result from database result. You can do like this:
1819
Original file line number Diff line number Diff line change 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+
1010echo $ util ->getXMLFromResult ($ model ->get ());
You can’t perform that action at this time.
0 commit comments