CodeIgniter Forums

Full Version: HMVC & Layouts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
---

My app structure is this:

Code:
app/
    modules/
        admin/
            controllers/
            helpers/
            models/
            views/
                layouts/
                articles/

Here's the code for my admin controller:

Code:
<?php

class Admin extends PL_Controller
{
    function init()
    {
        $this->load->helper('form');
    }

    function index()
    {
        $this->load->view('layouts/global');
        $this->load->view('index', array('title' => __CLASS__));
    }
}

It is probably something minor that I'm overlooking, but I keep getting the following error:

Code:
An Error Was Encountered

Unable to locate the requested file: ./app/views/admin/global.php

Any help would be greatly appreciated.