We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a74db61 commit 34921beCopy full SHA for 34921be
1 file changed
user_guide_src/source/outgoing/view_cells.rst
@@ -58,8 +58,10 @@ You would call it from within a view like:
58
Additionally, you can use parameter names that match the parameter variables in the method for better readability.
59
When you use it this way, all of the parameters must always be specified in the view cell call::
60
61
- <?= view_cell('\App\Libraries\Blog::recentPosts', 'category=codeigniter, limit=5') ?>
+ // In a View.
62
+ <?= view_cell('Blog::recentPosts', 'category=codeigniter, limit=5') ?>
63
64
+ // In a Cell.
65
public function recentPosts(string $category, int $limit)
66
{
67
$posts = $this->blogModel->where('category', $category)
0 commit comments