[eluser]DB2k[/eluser]
Hi
In PHP if I wanted to include say a menu system I would use the PHP Include command so that all pages can reference the same content in one place.
Now with CI, I can do this slightly differently but I am not quite sure which way is best to adhere to the MVC architecture?
The menu will just be HTML so is it a view? If so do I just have a file menu.php in my views folder, and then load it using:
class Site extends CI_Controller {
function index()
{
$this->load->view('menu');
}
}
Firstly - is that the right thing to do and secondly, will that actually produce the content on screen, or do I have to then call it somehow?
Sorry - I'm really new to this method of coding and apologise for asking such a noddy question that is almost certianly answered somewhere else. I just can't find it.
best regards,
Dave