You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which operating systems have you tested for this bug?
macOS
Which server did you use?
apache
Database
MySQL 5.7.39
What happened?
When generating a controlled cell via the php spark make:cell MyCell-command and echoing it into a site via <?= view_cell('MyCell') ?> CodeIgniter generates the following error: include(/USERDIR/test_ci4-news/app/Cells/my.php): Failed to open stream: No such file or directory
The generated filenames are:
MyCell.php
my_cell.php
Steps to Reproduce
Install CI4 with composer
Generate a view_cell with the CLI command
Echo it inside welcome_message.php with <?= view_cell('MyCell') ?>
If you rename the cell's viewfile to my.php, alas removing the '_cell' part, it works as expected
The text was updated successfully, but these errors were encountered:
sanchawebo
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Apr 26, 2023
sanchawebo
changed the title
Bug: Controlled Cells do not work
Bug: Controlled Cells CLI command generates wrong filenames
Apr 26, 2023
kenjis
added
duplicate
Issue or pull request duplicates an already existing issue/pull request
and removed
bug
Verified issues on the current code behavior or pull requests that will fix them
labels
Apr 26, 2023
Thanks for taking the time to fill out this bug report!
Before you begin, please ensure that there are no existing issues,
whether still open or closed, related to your report.
If there is, your report will be closed promptly.
For example, if you get the error on View Cells,
you can search the GitHub repository with the keyword "view cells".
PHP Version
8.2
CodeIgniter4 Version
4.3.1, 4.3.2, 4.3.3
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
macOS
Which server did you use?
apache
Database
MySQL 5.7.39
What happened?
When generating a controlled cell via the
php spark make:cell MyCell
-command and echoing it into a site via<?= view_cell('MyCell') ?>
CodeIgniter generates the following error:include(/USERDIR/test_ci4-news/app/Cells/my.php): Failed to open stream: No such file or directory
The generated filenames are:
Steps to Reproduce
welcome_message.php
with<?= view_cell('MyCell') ?>
Expected Output
It should print out the following HTML-code:
Anything else?
Followed the instructions at: https://codeigniter4.github.io/userguide/outgoing/view_cells.html#controlled-cells
Workaround/Functioning Code
If you rename the cell's viewfile to
my.php
, alas removing the '_cell' part, it works as expectedThe text was updated successfully, but these errors were encountered: