[eluser]Berik[/eluser]
you could have a "page" method within your controller that loads a template view and pass the inner html file as an argument to the method.
for example
-------------------------------------------------
(in controllerName):
function page($html_file_to_load)
{
...
check to see if file exists on server, if not show 404 page or redirect to homepage
// if the contents are outside the app directory
$the_contents = file_get_contents($html_file_to_load);
// if the contents are in the view directory
$the_contents = $html_file_to_load;
$data['html_content'] = $the_contents;
$this->load->view('pages_template', $data);
}
-------------------------------------------------
(in application/views/pages_template.php):
header stuff (doctype and other stuff)
site header html
<?php echo $html_content; ?>
site footer html
-------------------------------------------------
(in application/config/routes.php for nicer urls):
$route['(:any)'] = "controllerName/page/$1";