public function _ci_load($_ci_data)
{
extract($_ci_data);
if (isset($_ci_view)) {
$_ci_path = '';
/* add file extension if not provided */
$_ci_file = pathinfo($_ci_view, PATHINFO_EXTENSION) ? $_ci_view : $_ci_view . EXT;
foreach ($this->_ci_view_paths as $path => $cascade) {
if (file_exists($view = $path . $_ci_file)) {
$_ci_path = $view;
break;
}
if (!$cascade) {
break;
}
}
} elseif (isset($_ci_path)) {
$_ci_file = basename($_ci_path);
if (!file_exists($_ci_path)) {
$_ci_path = '';
}
}
if (empty($_ci_path)) {
show_error('Unable to load the requested file: ' . $_ci_file);
}
if (isset($_ci_vars)) {
$this->_ci_cached_vars = array_merge($this->_ci_cached_vars, (array) $_ci_vars);
}
extract($this->_ci_cached_vars);
ob_start();
if ((bool) @ini_get('short_open_tag') === FALSE && CI::$APP->config->item('rewrite_short_tags') == TRUE) {
echo eval('?>' . preg_replace("/;*\\s*\\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
} else {
include $_ci_path;
}
log_message('debug', 'File loaded: ' . $_ci_path);
if ($_ci_return == TRUE) {
return ob_get_clean();
}
if (ob_get_level() > $this->_ci_ob_level + 1) {
ob_end_flush();
} else {
CI::$APP->output->append_output(ob_get_clean());
}
}