Skip to content

Commit c99c118

Browse files
committed
docs: add empty lines for readability
1 parent 44806d8 commit c99c118

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

user_guide_src/source/outgoing/view_cells.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ Controlled Cells
7777

7878
.. versionadded:: 4.3.0
7979

80-
Controlled cells have two primary goals: to make it as fast as possible to build the cell, and provide additional logic and
81-
flexibility to your views, if they need it. The class must extend ``CodeIgniter\View\Cells\Cell``. They should have a view file
80+
Controlled cells have two primary goals: (1) to make it as fast as possible to build the cell, and (2) provide additional logic and
81+
flexibility to your views, if they need it.
82+
83+
The class must extend ``CodeIgniter\View\Cells\Cell``. They should have a view file
8284
in the same folder. By convention, the class name should be in PascalCase suffixed with ``Cell`` and the view should be
8385
the snake_cased version of the class name, without the suffix. For example, if you have a ``MyCell`` class, the view file
8486
should be ``my.php``.
@@ -89,7 +91,9 @@ should be ``my.php``.
8991
Creating a Controlled Cell
9092
==========================
9193

92-
At the most basic level, all you need to implement within the class are public properties. These properties will be made available to the view file automatically. Implementing the AlertMessage from above as a Controlled Cell would look like this:
94+
At the most basic level, all you need to implement within the class are public properties. These properties will be made available to the view file automatically.
95+
96+
Implementing the AlertMessage from above as a Controlled Cell would look like this:
9397

9498
.. literalinclude:: view_cells/008.php
9599

@@ -118,7 +122,9 @@ You can specify a custom view name by setting the ``view`` property in the class
118122
Customize the Rendering
119123
=======================
120124

121-
If you need more control over the rendering of the HTML, you can implement a ``render()`` method. This method allows you to perform additional logic and pass extra data the view, if needed. The ``render()`` method must return a string. To take advantage of the full features of controlled Cells, you should use ``$this->view()`` instead of the normal ``view()`` helper function:
125+
If you need more control over the rendering of the HTML, you can implement a ``render()`` method. This method allows you to perform additional logic and pass extra data the view, if needed. The ``render()`` method must return a string.
126+
127+
To take advantage of the full features of controlled Cells, you should use ``$this->view()`` instead of the normal ``view()`` helper function:
122128

123129
.. literalinclude:: view_cells/012.php
124130

0 commit comments

Comments
 (0)