[eluser]Andres Gonzalez[/eluser]
Hi,
In the documentation about views is the following example excerpt:
Code:
$this->load->view('header');
$this->load->view('menu');
$this->load->view('content', $data);
$this->load->view('footer');
Using multiple calls like this to $this->load->view() appears to catenate the html files. If each individual html file has <html>, <title>, <body>, etc, tags, that is each html file is well formated, then you end up with a single file with multiple html sections.
Is this considered good form and programming practice?
Or should the individual pages only contain "sections" or incomplete html code so that the combined output page is one complete, well formated html page? The disadvantage to this approach would be that there is no way to use html syntax checkers on the individual pages because they are not really complete html pages.
Thanks,
-Andres