Autoload fix
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
spl_autoload_register(function($classname) {
|
||||
if (strpos($classname, 'CL_') !== 0) {
|
||||
$file = APPPATH . 'libraries/' . $classname . '.php';
|
||||
if (file_exists($file) && is_file($file)) {
|
||||
@include_once($file);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
function __autoload($classname) {
|
||||
|
||||
if (strpos($classname, 'CL_') !== 0) {
|
||||
@@ -10,7 +20,7 @@ function __autoload($classname) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
///home/sameye/mermsemr/adminwww/application/config
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
spl_autoload_register(function($classname) {
|
||||
if (strpos($classname, 'CL_') !== 0) {
|
||||
$file = APPPATH . 'libraries/' . $classname . '.php';
|
||||
if (file_exists($file) && is_file($file)) {
|
||||
@include_once($file);
|
||||
}
|
||||
}
|
||||
});
|
||||
/*
|
||||
function __autoload($classname) {
|
||||
|
||||
if (strpos($classname, 'CL_') !== 0) {
|
||||
@@ -10,7 +19,7 @@ function __autoload($classname) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
///home/sameye/mermsemr/providerwww/application/config
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user