• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
am i missing something?

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?



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

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

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

see Removing the index.php file in the docs.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.