• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class 'Controller' not found

#1
[eluser]davy_yg[/eluser]
Hello,

I have this code:

application/controllers/latihancodeigniter.php


<?php
class Latihancodeigniter extends Controller
{
function index()
{
echo "Hello CodeIgniter";
}
}
?>


Then, this error appears:


Fatal error: Class 'Controller' not found in C:\xampp\htdocs\CodeIgniter_214\application\controllers\latihancodeigniter.php on line 4

Why is it? (I am using Codeigniter 2.1.4)

#2
[eluser]PravinS[/eluser]
check $system_folder and $application_folder in index.php

refer: http://ellislab.com/codeigniter/user-gui...tallation/

#3
[eluser]sv3tli0[/eluser]
extend CI_Controller not Controller ! Smile

as its extended in the example.. https://github.com/EllisLab/CodeIgniter/...elcome.php


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.