We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 699c88c commit d2a9b95Copy full SHA for d2a9b95
1 file changed
user_guide_src/source/models/model/001.php
@@ -1,15 +1,15 @@
1
<?php
2
3
-// Create a new class manually
+// Create a new class manually.
4
$userModel = new \App\Models\UserModel();
5
6
-// Create a new class with the model function
+// Create a new class with the model() function.
7
$userModel = model('App\Models\UserModel', false);
8
9
-// Create a shared instance of the model
+// Create a shared instance of the model.
10
$userModel = model('App\Models\UserModel');
11
12
-// Create shared instance with a supplied database connection
+// Create shared instance with a supplied database connection.
13
// When no namespace is given, it will search through all namespaces
14
// the system knows about and attempts to locate the UserModel class.
15
$db = db_connect('custom');
0 commit comments