enkay said:
You can use @yield in the master layout and @section in the child views instead of @include.
Thanks, but that's not the solution.
You mean like this ? Dynamic Layout in Laravel 4
headView.php
<?php
/*This how you Start a Section in a view*/
View::startSection('head'); ?>
<head>
<tiitle>Halooo, im a dynamic content</title>
</head>
<?php View::stopSection(); ?>
Then call it anywhere
<?php echo View::yieldContent('head'); ?>
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community