We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcbcf38 commit 4a65e2aCopy full SHA for 4a65e2a
user_guide_src/source/outgoing/view_cells.rst
@@ -101,6 +101,10 @@ Implementing the AlertMessage from above as a Controlled Cell would look like th
101
102
.. literalinclude:: view_cells/010.php
103
104
+.. note:: If you use typed properties, you must set the initial values:
105
+
106
+ .. literalinclude:: view_cells/023.php
107
108
.. _generating-cell-via-command:
109
110
Generating Cell via Command
user_guide_src/source/outgoing/view_cells/023.php
@@ -0,0 +1,13 @@
1
+<?php
2
3
+// app/Cells/AlertMessageCell.php
4
5
+namespace App\Cells;
6
7
+use CodeIgniter\View\Cells\Cell;
8
9
+class AlertMessageCell extends Cell
10
+{
11
+ public string $type = '';
12
+ public string $message = '';
13
+}
0 commit comments