Welcome Guest, Not a member yet? Register   Sign In
parameters in controller class
#1

[eluser]Ryan Zec[/eluser]
in the blog tutorial you get the variables from the url with the url helper. is there a way to do this:

public function login($username, $password)
{
//login logic
}

I was wondering if i can give the function parameters and codeigniter automatically assign the variables as there are in position in the url, can it?
#2

[eluser]Phil Sturgeon[/eluser]
Yes thats what it does. Read the manual, its right here and its wonderful! Big Grin




Theme © iAndrew 2016 - Forum software by © MyBB