![]() |
Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome. (/showthread.php?tid=14784) |
Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome. - El Forum - 01-15-2009 [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 Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome. - El Forum - 01-15-2009 [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/controllers/welcome.php Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome. - El Forum - 01-15-2009 [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 Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome. - El Forum - 01-15-2009 [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 Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome. - El Forum - 01-15-2009 [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-guide/overview/getting_started.html Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome. - El Forum - 05-22-2011 [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. Class 'Controller' not found in C:\wamp\www\CodeIgniter_1.6.3\CodeIgniter_1.6.3\system\application\controllers\welcome. - El Forum - 12-02-2012 [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 |