Welcome Guest, Not a member yet? Register   Sign In
First Test Controller
#1

[eluser]Unknown[/eluser]
Very simple question as a starter.

After installation I have two folder [system] and [user-guide] in root. Upon placing blog.php file in applications/controllers/ detailed here: http://ellislab.com/codeigniter/user-gui....html#what

The URL ../index.php/blog/ does not return the test 'hello world' statement. Does the above folder structure reflect a correct CodeIgniter installation?

Thanks

Ross
#2

[eluser]mi6crazyheart[/eluser]
According to u'r question... i think that blog.php is the controller which u've inserted in the Controller folder. So now, u need to insert a view file for that controller(blog.php) which i think u've not yet now used.

So, if it is that... then make a view file & insert that in the "views" folder & load that view file from u'r that controller file "blog.php".
#3

[eluser]TheIgniter[/eluser]
pastie your code. Check your class name, it should have the same name of the file Class Blog extends..




Theme © iAndrew 2016 - Forum software by © MyBB