[eluser]henry178[/eluser]
Hi, this my first project whit CI.
in my principal controller I have this code:
Code:
class Prova extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper('url');
}
function index()
{
$this->load->view('template1/prova/head');
$this->load->view('template1/prova/menu');
$this->load->view('template1/prova/content');
$this->load->view('template1/prova/footer');
}
}
I don't understand how to set the view:
view head:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>title</title>
</head>
view menu:
Code:
<ul>
<li>one</one>
<li>two</one>
<li>three</one>
</ul>
view content:
Code:
<body>
<h1>content</h1>
</body>
view footer:
[code ]
<div>footer</div>
</html>
[/code ]
This impostation is correct? There 'a better way
Thanks