Welcome Guest, Not a member yet? Register   Sign In
CI: Parameters and Folders
#1

[eluser]Roosevelt![/eluser]
Hello,
The title is lame, just pay attention to the body of the message :p.

I have a controller file called jack.php and it is located in this path:

/system/application/controllers/admin/jack.php

In the controller I have a method called test(). And it takes one parameter.

Now if I call http://web/admin/jack/1, where 1 is the parameter. CI doesn't read that value and returns a 404 error.

How do I fix this?

Thanks a bunch in advance.
#2

[eluser]xwero[/eluser]
http://web/admin/jack/test/1
#3

[eluser]Roosevelt![/eluser]
Got it. I was calling the URL without the method.




Theme © iAndrew 2016 - Forum software by © MyBB