Shared layout for module won't show

8 years ago

WindBridges
Member | 10
+
0
-

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?

8 years ago

Majkl578
Moderator | 1379
+
0
-

You might be missing the {block #content} at the beginning of your template (expecting you have {include #content} in the layout).

8 years ago

WindBridges
Member | 10
+
0
-

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!