Skip to content

Commit db47504

Browse files
committed
docs: add explanation and links
1 parent 4ff63e7 commit db47504

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

user_guide_src/source/general/common_functions.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ Service Accessors
107107
:returns: The model instances
108108
:rtype: object
109109

110+
More simple way of getting model instances.
111+
112+
The ``model()`` uses ``Factories::models()`` internally.
113+
See :ref:`factories-example` for details on the first parameter ``$name``.
114+
110115
See also the :ref:`Using CodeIgniter's Model <accessing-models>`.
111116

112117
.. php:function:: old($key[, $default = null,[, $escape = 'html']])

user_guide_src/source/models/model.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ You can access models within your classes by creating a new instance or using th
2828

2929
.. literalinclude:: model/001.php
3030

31+
The ``model()`` uses ``Factories::models()`` internally.
32+
See :ref:`factories-example` for details on the first parameter.
33+
3134
CodeIgniter's Model
3235
*******************
3336

0 commit comments

Comments
 (0)