Shared layout for module won't show
Notice: This thread is very old.
- WindBridges
- Member | 10
Hello. I'm beginner for this framework.
I have such application structure:
<?php
app
|---MembersModule
|---presenters
| |---StatsPresenter.php
|---templates
|---Stats.default.latte
|---@layout.latte
?>
Result is Stats.default.latte template is shown without wrapping into @layout.latte. What is the problem?
- Jan Tvrdík
- Nette guru | 2595
Try to dump the result of Nette\Application\UI\Presenter::formatLayoutTemplateFiles().
- WindBridges
- Member | 10
Majkl578 wrote:
You might be missing the
{block #content}
at the beginning of your template (expecting you have{include #content}
in the layout).
Yes, this was a reason. Thanks!