CodeIgniter Forums
URI problems - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: URI problems (/thread-9102.html)



URI problems - El Forum - 06-12-2008

[eluser]=G-Man=[/eluser]
Hello, I'm having an issue calling a page with a value passes with it

basically calling http://www.mysite.com/index.php/administration/EditServer/1 results in a 404 and in the logs it shows 404 Page Not Found --> Editserver/1 but if i call the same page with out the /1 or even just without the 1, the page loads (with empty table of course).

The 1 is the server ID to look up the info for and is read with $this->uri->segment(3), this is also coming from a text link, so i cant post it to the page

the folder structure is controllers/administration/EditServer.php

Thanks for your help.


URI problems - El Forum - 06-12-2008

[eluser]Gavin Blair[/eluser]
what does your controller look like?


URI problems - El Forum - 06-12-2008

[eluser]Nikhil Vijayan[/eluser]
EditServer is your controller .. you havent specified the method ..

if you are using index function then call it like this

http://www.mysite.com/index.php/administration/EditServer/index/1