Open neznaika0 opened 2 weeks ago
All content within a view that extends a layout must be included within section($name) and endSection() method calls. Any content between these calls will be inserted into the layout wherever the renderSection($name) call that matches the section name exists.
https://codeigniter.com/user_guide/outgoing/view_layouts.html#using-layouts-in-views
Good. If only a section is output, then the rest should be ignored, not added.
PHP Version
8.3
CodeIgniter4 Version
4.5.5
CodeIgniter4 Installation Method
Git
Which operating systems have you tested for this bug?
Linux
Which server did you use?
cli-server (PHP built-in webserver)
Database
No response
What happened?
The template layout is not rendered correctly - the template is displayed first, then the expandable layout. I suspect this is because of the simplicity of
$view->extend('main')
. It adds a variable instead of working with layouts The display process starts with$view->nclude('include')
since the layer is not installed at this stageSteps to Reproduce
Apply patch for test
Expected Output
The section and everything else should be displayed in the main layout
Anything else?
https://github.com/michalsn/codeigniter-htmx/pull/78