codeigniter-template icon indicating copy to clipboard operation
codeigniter-template copied to clipboard

Layout Not Loading

Open jackperry opened this issue 14 years ago • 1 comments

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:

template ->title('Groups Index') ->set_layout('default') ->build('groups/index'); } ``` } /\* End of file index.php _/ /_ Location: ./application/controllers/groups.php */

jackperry avatar Nov 01 '11 16:11 jackperry

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

ruthlessfish avatar Nov 15 '11 15:11 ruthlessfish