It looks like you're new here. If you want to get involved, click one of these buttons!
class Home extends CI_Controller {
function __construct()
{
parent::__construct();
}
public function index()
{
$vars = $this->fuel->pagevars->retrieve('home');
$vars['controller_content'] = 'Some custom controller content';
// use Fuel_page to render so it will grab all opt-in variables and do any necessary parsing
$this->fuel->pages->render('home/index', $vars);
}
}
<div class="content clearfix">
<?php echo fuel_var('body', ''); ?>
<ol><li><?php echo $controller_content; ?></li><li>Some custom view content</li></ol>
</div>
Comments
https://github.com/daylightstudio/FUEL-CMS-User-Guide-Module
It looks like pages might be created via scripts rather than the admin, for example?
I was wondering if there were any revised tutorials in the offing?
$this->fuel->pages->render('home/index', $vars, array(), TRUE);
With regards to revised tutorials, we have a few other things we are working on including a what's changed blogged post but do plan on talking about all the new changes.