Skip to content

Passing data to insert() inside layout() #325

@zaxwebs

Description

@zaxwebs

Demo structure:

/layouts
    main.php
/partials
    sidebar.php
index.php

I "extend" layouts/main.php from index.php, how do I change something like a heading inside sidebar.php from index.php?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions