parameters in controller class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: parameters in controller class (/showthread.php?tid=5172) |
parameters in controller class - El Forum - 01-09-2008 [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? parameters in controller class - El Forum - 01-09-2008 [eluser]Phil Sturgeon[/eluser] Yes thats what it does. Read the manual, its right here and its wonderful! |