<?php $data = array($title); ?> <?php echo View::forge('_head', $data); ?>
<div> <p>strong>Notice!</strong></p> <p>ErrorException [ Notice ]: Undefined variable: title</p> <p>strong>APPPATH/views/_head.php @ line 4:...</strong></p>
// assign global variables so all views have access to them $view->set_global('data', $data);Check the docs here : http://docs.fuelphp.com/general/views.html - part 'Method 1 (using example views above and lazy rendering)' Let me know if it works, and anyone correct me if I'm wrong
It looks like you're new here. If you want to get involved, click one of these buttons!