Hello
When I'm using this code in a controller, the prepend file (_init.php) is not running.
<?php
// ======= basic-page.php =======
// SET ACTIVE NAV (used by _init.php prepend file
$view->set('menuActive', $page->name);
// DETECT IF PORTFOLIO
if ($page->children->get('template=portfolio')) {
$view = $factory->load('portfolio', true); // Load the main markup
}
?>
How can I set the prepend file running ?
Thanks in advance