codeigniter 2.0 Fatal error: Class 'Controller' not found in
In CodeIgniter 2 your controllers inherit from super class CI_Controller
, rather than the super class Controller
used in CodeIgniter 1.
The same applies to models in CI2 which extend the class CI_Model
rather then Model
.
I think you are not extending the controller like below;
<?phpclass MyOwnController extends CI_Controller { function index() { // your code here }}?>
It's written on http://codeigniter.com/user_guide/general/controllers.html, you have to extend CI_Controller
Along with that CI_ prefix to your controller, any core classes you extend, you should place withing the applications/core/ folder. This is because the core CodeIgniter classes have been moved to the system/core/ folder.