Loading a block from an Advanced Module
Can you load blocks and assets from the application folder into an advanced module? We used to do this in 0.9.3 with just something like:
<?=$this->load->view("_blocks/" . SYSTEM_FOLDER_NAME . "/header-bar")?>
but in 1.1 when I try to do this I get this error:
Severity: Notice
Message: Undefined property: MY_Loader::$menu
Ideas?
Comments
echo $this->menu->render($secondaryMenu, 'active', NULL, 'basic');
but I can't figure out why it cannot render/use the menu class?
We are loading from the controller this way:
this->load->module_model(FUEL_FOLDER, 'sitevariables_model');
but when I go to the view it gives me this error:
Unable to locate the file: sitevariables_model.php
$this->load->module_model(FUEL_FOLDER, 'fuel_sitevariables_model');
should work?
Except I am still getting errors which I am not sure are related to this or something completely different but this is what I'm getting:
Message: Undefined property: Checkout::$sitevariables_model