[eluser]webdevron[/eluser]
Thanks a lot. But sorry to say, still there in a problem. That code looks good and works on localserver (XAMPP). But whenever I uploaded it on my hosting server there is an error saying:
Fatal error: Class 'My_controller' not found in /home/user/public_html/app/controllers/home.php on line 3
Code snip:
/application/core/MY_Controller.php
Code:
class My_Controller extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('Toolmodel');
$this->Toolmodel->save_visitor($this->save_visitor());
}
public function save_visitor(){
// Getting User Informations
}
}
And in my default controller (in this case 'home'):
Code:
class Home extends My_controller{
public function index(){
// View loading here
}
}
So, could you please tell me what is the problem with Hosted CPanel?