|
Fatal error: Class 'MY_Controller' not found in /data/home/byu3268650001/htdocs/application/controllers/Index.php on line 4
application/core/My_controller.php
class MY_Controller extends CI_Controller
{
public function __construct(){
parent::__construct();
$this->load->library('session');
$this->load->helper('url');
$this->load->database();
if(!$this->session->userdata('username')){
redirect('login');
return;
}else{
$gpid=$this->session->userdata('gpid');
if($gpid!=0) {
$pinfo = $this->db->query("select * from rp_user_group where id={$gpid}")->result();
}
}
}
}
class Index extends MY_Controller
{
public function __construct()
{
parent::__construct();
}
在本地上是可以的 ,lunix下服务器就挂了。。。。一直不是和弄明白,CI版本是最新的
|
|