-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing data to insert() inside layout() #325
Comments
Update: I'm currently passing data from index up to layouts/main & down to partials/sidebar in a similar fashion to the stacked layouts in the docs, which feels a bit like prop drilling. Wondering if that's the optimal way. |
Hey! I'm just using $this->insert and $this->section
|
Demo structure:
I "extend" layouts/main.php from index.php, how do I change something like a heading inside sidebar.php from index.php?
The text was updated successfully, but these errors were encountered: