Welcome Guest, Not a member yet? Register   Sign In
HMVC & Layouts
#1

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




Theme © iAndrew 2016 - Forum software by © MyBB