[eluser]TWP Marketing[/eluser]
Yes. but it is better to do this in your controller, using the second parameter of the loader function
for example, in the controller
Code:
...
// store standard site page header/nav/footer as html strings (not sent directory to browser
$data['header'] = $this->load->view('page_header',$this->view_data,TRUE);
$data['navigation'] = $this->load->view('page_navigation',$this->view_data,TRUE);
$data['footer'] = $this->load->view('page_footer',$this->view_data,TRUE);
...
$data['form'] = $this->load->view('my_form',$this->view_data,TRUE);
// send the stored html strings to the browser
$this->load->view('page',$data);
Notice the second parameter in the first three calls to load->view().
In the view named page.php:
Code:
...
echo $header;
echo $navigation;
...
echo $form; // this is your form html
...
echo $footer;