Edit file config.php in Application-Config-config.php, change

function __autoload_register**

to

<?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’);

// untuk auto load folder library
spl_autoload_register(function($classname) {
if (strpos($classname, ‘CI_’) !== 0) {
$file = APPPATH . ‘libraries/’ . $classname . ‘.php’;
if (file_exists($file) && is_file($file)) {
@include_once($file);
}
}
});

 

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *