Welcome Guest, Not a member yet? Register   Sign In
newbie to ci but not php
#1

[eluser]gazza7364[/eluser]
Hi

I've just tried out some code as follows to see if CI is working:-

<?php

class Blog extends Controller {

funtion index()
{
echo 'Hello World';
}


}
?>

The file is a controller as mention in the tutorial. it also says if you put /blog after your default url and index.php it should echo Hello World.(I had to write it like this, it will not post with the full url due to spam) the file is blog.php as with the naming convention.



but all I get is a blank white page.

the default page works at index.php with Welcome to CodeIgniter! etc.


If this simple code isn't working, have I any hope:-)


Any help would be grateful, as I see no point, ploughing on if this simple code dosn't work.

I have used php before but not in a framework, I would like to learn and I don't want to be put of by something so simple, which is easy to write in normal php.

Thanks in advance




Theme © iAndrew 2016 - Forum software by © MyBB