Using view layouts echoes void return type. |
This looks like an error in the user guide. You are right, extend() return void, there's nothing to echo.
PHP Code: /** Source: https://github.com/codeigniter4/CodeIgni...w.php#L398 ...and it's the same with section() and endSection(). This: PHP Code: <?= $this->extend('default') ?> ...should be this: PHP Code: <?php $this->extend('default') ?> |
Messages In This Thread |
Using view layouts echoes void return type. - by aschmitz - 07-11-2021, 02:19 PM
RE: Using view layouts echoes void return type. - by InsiteFX - 07-12-2021, 01:34 AM
RE: Using view layouts echoes void return type. - by aschmitz - 07-12-2021, 01:36 AM
RE: Using view layouts echoes void return type. - by includebeer - 07-12-2021, 07:26 AM
RE: Using view layouts echoes void return type. - by paulbalandan - 07-12-2021, 11:15 AM
|