philsturgeon / codeigniter-template

Template library for CodeIgniter which supports modules, themes, partial views, etc.
411 stars 178 forks source link

Layout Not Loading #23

Open jackperry opened 12 years ago

jackperry commented 12 years ago

Hello,

I've put all of the codeigniter-template files in the proper place, but layouts just...aren't loading.

Layout:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>{$template.title}</title>
</head>
<body>
    {$template.body}
</body>
</html>

Controller: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Groups extends CI_Controller {

public function index()
{
    $this->template
        ->title('Groups Index')
        ->set_layout('default')
        ->build('groups/index');
}

}

/* End of file index.php / / Location: ./application/controllers/groups.php */

ruthlessfish commented 12 years ago

and your layout file is application/views/layouts/default.php?