Skip to content

Commit 919b728

Browse files
committed
docs: move versionadded
1 parent 42773de commit 919b728

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/outgoing/view_cells.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ When you use it this way, all of the parameters must always be specified in the
7474
Controlled Cells
7575
****************
7676

77+
.. versionadded:: 4.3.0
78+
7779
Controlled Cells have two primary goals: to make it as fast as possible to build the cell, and provide additional logic and flexibility to your views, if they need it. The class must extend ``CodeIgniter\View\Cells\Cell``. They should have a view file in the same folder. By convention the class name should be PascalCase and the view should be the snake_cased version of the class name. So, for example, if you have a ``MyCell`` class, the view file should be ``my_cell.php``.
7880

7981
Creating a Controlled Cell
@@ -103,8 +105,6 @@ At the most basic level, all you need to implement within the class are public p
103105
Generating Cell via Command
104106
===========================
105107

106-
.. versionadded:: 4.3.0
107-
108108
You can also create a controlled cell via a built in command from the CLI. The command is ``php spark make:cell``. It takes one argument, the name of the cell to create. The name should be in PascalCase, and the class will be created in the ``app/Cells`` directory. The view file will also be created in the ``app/Cells`` directory.
109109

110110
::

0 commit comments

Comments
 (0)