Welcome Guest, Not a member yet? Register   Sign In
am i missing something?
#1

[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
#2

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

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

[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...
#4

[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
#5

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




Theme © iAndrew 2016 - Forum software by © MyBB