Welcome Guest, Not a member yet? Register   Sign In
Accessing a function directly
#1

[eluser]CodeIgniterNoob[/eluser]
I have a function that passes an id to a destination page that pulls data from a table based on that id. Everything works fine when the URL contains a number at the end like post/1, but when I hit the function directly like post/ it gives errors saying "Message: Missing argument 1 for welcome::post()" .

Is there a way to make that URL redirect to another page?


Messages In This Thread
Accessing a function directly - by El Forum - 10-22-2008, 10:55 PM
Accessing a function directly - by El Forum - 10-22-2008, 11:10 PM
Accessing a function directly - by El Forum - 10-22-2008, 11:17 PM
Accessing a function directly - by El Forum - 10-22-2008, 11:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB