Skip to content

🎉 feat: implement master layout system with SectionManager and custom layout support - #6

Open
harunollyo wants to merge 5 commits into
themeum:mainfrom
harunollyo:master-layout
Open

🎉 feat: implement master layout system with SectionManager and custom layout support#6
harunollyo wants to merge 5 commits into
themeum:mainfrom
harunollyo:master-layout

Conversation

@harunollyo

Copy link
Copy Markdown
Contributor

With this PR we can now

From controller

public function account_page(Request $request)
{
     return view( 'site.account.dashboard' )->layout( 'account-layout' )
}
// account-layout.php
<?php Template::get_header(); ?>
<div>Sidebar</div>
<div><?php render_section( 'content' ); ?></div>
<?php Template::get_footer(); ?>
// dashboard.php
start_section( 'content' );
echo "This is dashboard";
end_section();

Comment thread src/helpers.php Outdated
@harunollyo
harunollyo requested a review from ahamed August 26, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants