Open jackperry opened 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 */
and your layout file is application/views/layouts/default.php?
Hello,
I've put all of the codeigniter-template files in the proper place, but layouts just...aren't loading.
Layout:
Controller: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Groups extends CI_Controller {
}
/* End of file index.php / / Location: ./application/controllers/groups.php */