It looks like you're new here. If you want to get involved, click one of these buttons!
$this->fuel->pages->render('myView', $vars, array('view_module' => 'myModule', 'layout' => 'main'));
I tested the above code but the main layout was not found. That's because fuleCMS is apparently looking for the "main" layout in this directory: "/modules/myModule/views/_layout" which does not exist. How can I tell the "render" method where to find the layout file?
Comments
and make it render one of their views from one of their controllers, using the default header and footer of fuel cms? I really appreciate any help!
$this->fuel->pages->render('registeration', $vars, array('view_module' => 'registeration'));Here is the source code of my view file:<?php fuel_set_var('layout', 'main'); echo 'hello';?>The main layout is being read and applied from /fuel/application/views/_layouts/main.php: The HTML of header and footer blocks are loaded, but the "css" and "js" fuel functions in header and footer blocks are not recognized and I get these errors: How can I get this fixed?In my controller class, I was inheriting from CI_Controller instead of Fuel_base_controller.