[eluser]InsiteFX[/eluser]
./application/views/template.php
Code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>The Template Example.</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Your styles -->
<link rel="stylesheet" href="assets/css/styles.css" type="text/css" media="screen" />
</head>
<body>
<?php echo $title; ?>
<?php $this->load->view($main); ?>
</body>
</html>
in your controller
Code:
$data['title'] = 'Template Test';
$data['main'] = 'view_file_name_to_load';
$this->load->vars($data);
$this->load->view('template');
Because it must be calling the login controller