public function view($view, $vars = array(), $return = FALSE)
{
if ($this->_ci_is_inside_module) {
$ext = pathinfo($view, PATHINFO_EXTENSION);
$view = $ext == '' ? $view . '.php' : $view;
$path = APPPATH . 'modules/' . $this->_ci_module_path . '/views/' . $view;
if (file_exists($path)) {
return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_path' => $path, '_ci_return' => $return));
} else {
return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));
}
} else {
return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));
}
}