[eluser]JasonS[/eluser]
Hi,
I am having a problem with loading view files.
I don't really understand how the system is getting the path to view files. I have an external place where some view files are being stored.
I wrote this little hack to extend the loader class.
Code:
public function view_page($file, $data, $load, $path) {
$sys_path = $this->_ci_view_path;
$this->_ci_view_path = $path;
$this->view($file, $data, $load);
$this->_ci_view_path = $sys_path;
}
Does anyone know how to do this properly?
For some reason the ob_start() on line 665 of Loader.php seems to be the breaking point. The view file path can be printed out before ob_start() yet not after. Other view files load fine.