$data['subview']='xxx'; $this->load->view('main', $data);
<some header> <? include $subview . EXT; ?> <some footer>