CodeIgniter Forums

Full Version: Class 'Controller' not found
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


I have this code:


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)

El Forum

check $system_folder and $application_folder in index.php


El Forum

extend CI_Controller not Controller ! Smile

as its extended in the example..