How could I passing the variables into the layout file from the view? In the main.php layout I have the html:
<div class="title"><?php echo $pagetitle; ?></div>
And from different views I need to pass the different titles to the layout. For example, from main page I pass the "Home" value, from admin panel I pass "Administration panel" title.