[eluser]benfike[/eluser]
Hi!
I just gettin use
Phil's Template Library with the latest version of
HMVC and
Codeigniter, and I have the following problem:
Code:
An Error Was Encountered
Unable to load the requested file: default.php
The Folder Structure:
Look at the attached file.
Controller:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Hirek extends MY_Controller {
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->template
->set_theme('desktop')
->set_layout('default')
->build('welcome');
}
}
Layout file (default.php):
Code:
<?php echo doctype(); ?>
<html>
<head>
<title><?php echo $template['title']; ?></title>
</head>
<body>
<?php echo $template['body']; ?>
</body>
</html>
Config file (template.php inside config folder):
Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$config['parser_enabled'] = TRUE;
$config['parser_body_enabled'] = FALSE;
$config['title_separator'] = ' | ';
$config['layout'] = 'default';
$config['theme'] = '';
$config['theme_locations'] = array(
APPPATH.'themes/'
);
Autoload.php:
Code:
$autoload['libraries'] = array('user_agent', 'template', 'parser');
$autoload['config'] = array('template');
I hope I post everything which is needed. Anyone see the problem?
Thank you in advance.