Welcome Guest, Not a member yet? Register   Sign In
Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome.
#1

[eluser]barun the michael[/eluser]
Hi

I am a new to codeigniter I have configured it and I am getting this error now Fatal error: Class 'Controller' not
found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome.php on line 2
#2

[eluser]Colin Williams[/eluser]
My hunch is that you are trying to request the welcome.php file and not the index.php front controller. The url for the welcome controller will be http://localhost/index.php/welcome and not http://localhost/system/application/cont...elcome.php
#3

[eluser]barun the michael[/eluser]
Actually I am using codeigniter inside wamp server so the the path is C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome.php. I have also tried with C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\index.php it is giving he requested URL /CodeIgniter_1.6.3/CodeIgniter_1.6.3/system/application/controllers/index.php was not found on this server.
this error.Whether I have to make any change in index.php or config.php.....Please help
#4

[eluser]barun the michael[/eluser]
Actually I am using codeigniter inside wamp server so the the path is C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome.php. I have also tried with C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\index.php it is giving he requested URL /CodeIgniter_1.6.3/CodeIgniter_1.6.3/system/application/controllers/index.php was not found on this server.
this error.Whether I have to make any change in index.php or config.php.....Please help
#5

[eluser]Colin Williams[/eluser]
Actually, it doesn't matter what server you are using, you don't request the controller file directly. You have to access the framework through the front controller, which is /index.php. I never suggested you rename your controller. When you download a fresh copy of CI, there is an index.php file in the root directory. This is what you should point your browser at.

Start here: http://ellislab.com/codeigniter/user-gui...arted.html
#6

[eluser]Unknown[/eluser]
Hi,

I had the same problem. It you open and examine welcome.php, you can see your CodeIgniter directory extension has been added to the Controlloer eg:CI_Controller . If you add the same prefix to your classes everythig will fine.
#7

[eluser]Unknown[/eluser]
[quote author="aru" date="1306075624"]Hi,

I had the same problem. It you open and examine welcome.php, you can see your CodeIgniter directory extension has been added to the Controlloer eg:CI_Controller . If you add the same prefix to your classes everythig will fine.[/quote]

THE PM aru IS ABSOLUTELY RIGHT




Theme © iAndrew 2016 - Forum software by © MyBB