I have a section of data that loads a main view with a stylesheet etc. What I am trying to do is just load the stylesheet for my respective function 'addSale' - I just want my form style.
My admintemplate is a full document that implements the required php sections. Would my best option be to create three files header navigation and footer? Should I create a separate file for the meta data?
// Main Page Data
$data['sales_pages'] = $this->sales_model->getSalesPages();
$data['cms_pages'] = $this->navigation_model->getCMSPages();
$data['title'] = 'Sales';
$data['content'] = $this->load->view('admin/sales', $data, TRUE);
$this->load->view('admintemplate', $data);
}
function addSale(){
$data['content'] = $this->load->view('admin/testview',$data);
}