Welcome Guest, Not a member yet? Register   Sign In
TUTORIAL : simple side wide login
#4

[eluser]GSV Sleeper Service[/eluser]
load-vars() is new to me, must have missed that when reading the docs.
Quote:I’m not putting the functions into a class because you will never write the functions yourself in controller code.
I don't understand this line, why wouldn't I?

[edit] - about this load->vars() thing. shouldn't your code look like this, or am I completely misunderstanding how load->vars() works?
Code:
function login_form()
{
   $CI =& get_instance();
   $CI->load->vars(array('login',$CI->load->view('login_form', '', true));
}
which to me says "load the login_form view, return it, then assign it to a var called 'login'"


Messages In This Thread
TUTORIAL : simple side wide login - by El Forum - 01-05-2009, 04:07 AM
TUTORIAL : simple side wide login - by El Forum - 02-02-2009, 05:09 PM
TUTORIAL : simple side wide login - by El Forum - 02-03-2009, 05:18 AM
TUTORIAL : simple side wide login - by El Forum - 02-03-2009, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB