Welcome Guest, Not a member yet? Register   Sign In
Userdata and session data into database
#3

[eluser]someone Smile[/eluser]
[quote author="CroNiX" date="1342459942"]$this->userdata(‘username’);

You're not accessing the session class here...[/quote]

Then I get this error: "Fatal error: Call to undefined method User::userdata()". But if I leave $this->session->userdata(‘username’); in other function in this controller, then it works normally. Error is only when I want to display data from userdata() or compare it to some string or int.

Where am I doing mistake?


Messages In This Thread
Userdata and session data into database - by El Forum - 07-16-2012, 08:52 AM
Userdata and session data into database - by El Forum - 07-16-2012, 10:32 AM
Userdata and session data into database - by El Forum - 07-16-2012, 11:41 AM
Userdata and session data into database - by El Forum - 07-16-2012, 02:55 PM
Userdata and session data into database - by El Forum - 07-17-2012, 01:25 AM
Userdata and session data into database - by El Forum - 07-17-2012, 01:39 AM
Userdata and session data into database - by El Forum - 07-17-2012, 01:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB