I can not access application via uri class - 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: I can not access application via uri class (/showthread.php?tid=5283) |
I can not access application via uri class - El Forum - 01-15-2008 [eluser]Unknown[/eluser] :cheese: Ok Im straight off the boat today. Problem is that I can not get output as is suggested in hello world video tutorial. so e.g. : class Snore extends Controller { function hello (){echo "Hello World";} } index.php/classname/ will not output hello world until I declare function in uri index.php/classname/function/ works. Is this correct? I can not access application via uri class - El Forum - 01-15-2008 [eluser]Seppo[/eluser] By the falt, it will look for the index method. So you have to do Code: class Snore extends Controller I can not access application via uri class - El Forum - 01-15-2008 [eluser]Michael Wales[/eluser] Code: class Snore extends Controller To access that the URL would be: yourserver/index.php/snore/hello |