[eluser]strike312[/eluser]
Hi Guys, just following the first tutorial video and I'm stuck actually on the very first piece of code.
I have downloaded Code Ingiter 2.0.1, and put the folder CI into my webroot folder public_html.
I have created a new php file site.php with the following code in it under the applications/controllers folder.
I have also tried using
Code:
class site extends CI_Controller.
Code:
<?php
class site extends Controller{
function index(){
echo "hello world!";
}
}
?>
I receive the following message when accessing via localhost/ci/index.php/site
Quote:Fatal error: Class 'Controller' not found in C:\public_html\CI\application\controllers\site.php on line 3
Any ideas? I read in another post regarding the AddType and I have added the following line to the httpd.conf in the Apache folder:
Code:
AddType application/x-httpd-php .php .phtml .php3 .html
and my directory and document root is set to c:/public_html.
Any help would be appreciated.
Thanks