CodeIgniter Forums
HMVC & Layouts - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: HMVC & Layouts (/thread-12193.html)



HMVC & Layouts - El Forum - 10-09-2008

[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.