Welcome Guest, Not a member yet? Register   Sign In
Extending View File issue.
#1

[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.


Messages In This Thread
Extending View File issue. - by El Forum - 07-07-2010, 08:23 AM
Extending View File issue. - by El Forum - 07-07-2010, 08:36 AM
Extending View File issue. - by El Forum - 07-07-2010, 08:40 AM
Extending View File issue. - by El Forum - 07-07-2010, 10:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB