CodeIgniter Forums
am i missing something? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: am i missing something? (/showthread.php?tid=4617)



am i missing something? - El Forum - 12-06-2007

[eluser]gafro[/eluser]
My brain...

set the default controller to home

in the home controller the index() points to a home_view file. It loads fine. But when I create test() and echo "hello" and give it a hello_view file it doesnt load the page when i type

localhost/demo/home/hello/ into the url.

it just stays on the home view page.

any ideas?

Cheers


am i missing something? - El Forum - 12-06-2007

[eluser]Alexxz[/eluser]
localhost/demo/home/hello/

And what is demo?
May be you need to go to localhost/home/hello/ ?


am i missing something? - El Forum - 12-06-2007

[eluser]Thoer[/eluser]
it should be localhost/demo/home/test/ Smile

Edit: and make sure you echo hello in your view file and that your test function is in your controller...


am i missing something? - El Forum - 12-06-2007

[eluser]gafro[/eluser]
ye sorry its localhost/demo/home/test/

demo is the directory the whole ci is in.

Still didnt work. however if i put localhost/demo/index.php/home/test/ it will work. I guess thats what Im missing. Ill need to edit that in the htaccess file.

Cheers for the help alexxz and thoer


am i missing something? - El Forum - 12-06-2007

[eluser]Grahack[/eluser]
see Removing the index.php file in the docs.