• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.