File tree Expand file tree Collapse file tree
user_guide_src/source/outgoing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,11 +26,13 @@ Calling a View Cell
2626
2727No matter which type of View Cell you are using, you can call it from any view by using the ``view_cell() `` helper function.
2828
29- The first parameter is the name of the class and method to call, and the second parameter is an array of parameters to pass to the method:
29+ The first parameter is (1) *the name of the class and method * (Simple Cell) or (2) *the name of the class * (Controlled Cell) to call,
30+ and the second parameter is an array of parameters to pass to the method:
3031
3132.. literalinclude :: view_cells/001.php
3233
33- The Cell method must return a string, which will be inserted into the view where the ``view_cell() `` function was called.
34+ The string that the Cell returns will be inserted into the view where the
35+ ``view_cell() `` function was called.
3436
3537Namespace Omission
3638==================
Original file line number Diff line number Diff line change 11// In a View.
2+
3+ // Simple Cell
24<?= view_cell ('App\Cells\MyClass::myMethod ' , ['param1 ' => 'value1 ' , 'param2 ' => 'value2 ' ]) ?>
5+
6+ // Controlled Cell
7+ <?= view_cell ('App\Cells\MyCell ' , ['param1 ' => 'value1 ' , 'param2 ' => 'value2 ' ]) ?>
You can’t perform that action at this time.
0 commit comments