Welcome Guest, Not a member yet? Register   Sign In
GET & URI
#1

[eluser]carllawl[/eluser]
Im still writing up my signup page, now i understand that it can be done with the URI class but i cant quite work out how to go about doing it

index.php/register/TYPE/submit
| | | |
index model GET function

is it possible to do it like this?

the register model shows the form
the TYPE is to be gotten
and the function is when the user has hit submit

is it possible to do it like this or does the get HAVE to be at the end?

Carl
#2

[eluser]gyo[/eluser]
In your example 'register' is the controller, 'type' is the method and 'submit' a parameter passed to it.

I suggest you to check how Routing and the URI Class work.




Theme © iAndrew 2016 - Forum software by © MyBB