mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-25 17:57:58 -05:00
19 lines
628 B
PHP
19 lines
628 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
class MY_Loader extends CI_Loader {
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
log_message('debug', "MY_Loader Class Initialized");
|
|
}
|
|
|
|
function view($view, $vars = array(), $return = FALSE)
|
|
{
|
|
// add other first view path
|
|
$this->_ci_view_paths = array_merge(array(realpath('templates/flatly').DIRECTORY_SEPARATOR => 1), $this->_ci_view_paths);
|
|
|
|
return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));
|
|
}
|
|
|
|
} |