Postingan lainnya
Cannot redeclare __autoload() (previously declared
error nya seperti gan, ada yg bisa bantu fix??
Fatal error: Cannot redeclare __autoload() (previously declared in C:\xampp\htdocs\big-project\home\dev\application\config\config.php:5) in C:\xampp\htdocs\big-project\home\dev\application\config\config.php on line 9
0
2 Jawaban:
config.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
defined('EXT','.php'); //extension file
function __autoload($class){
if(file_exists(APPPATH."core/".strtolower($class).EXT)){
include_once(APPPATH."core/".strtolower($class).EXT);
}
}
0
Jawaban Terpilih
owh ternyata dibagian ini => seharusnya define tanpa "d" hehehe..
define('EXT','.php'); //extension file
0