CodeIgniter Forums
First Test Controller - 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: First Test Controller (/showthread.php?tid=31844)



First Test Controller - El Forum - 07-04-2010

[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-guide/general/controllers.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


First Test Controller - El Forum - 07-04-2010

[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".


First Test Controller - El Forum - 07-05-2010

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