Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB