Message: Undefined property: Register::$ezauth |
[eluser]v33s[/eluser]
Hi, I am using ez_Auth and I have to solve the problem about registration I got this message when i press button Register: Quote:A PHP Error was encountered My controller: Code: <?php What`s the problem?
[eluser]wiredesignz[/eluser]
That can't be the controller causing the issue, line number 13 has no reference to $this->ezauth. Other than that, the only trivial problem I see is the instruction to load the ezauth_model should be all lowercase.
[eluser]v33s[/eluser]
Thanks for a reply, but changing the EzAuth_Model to lowercase not resolve the problem, original example from ezAuth site have got it with uppercase...
[eluser]Rick Jolly[/eluser]
Like wiredesignz mentioned, you're not showing the correct code. Maybe we could help if you show us the code that causes that error.
[eluser]v33s[/eluser]
Have reference here: Code: ....... It must be that controller
[eluser]Rick Jolly[/eluser]
Nope, that's not the code according to your error. Line 13 of your register controller has a call to authorize(). Post the controller with that code.
[eluser]v33s[/eluser]
Function authorize() is in my model ;o If i put localhost/codeigniter/register My controller register.php: http://phpfi.com/317148 And model ezAuth: http://phpfi.com/317150
[eluser]Rick Jolly[/eluser]
Ah, it's a simple spelling mistake: Code: function __contruct()
[eluser]wiredesignz[/eluser]
Wow, I never saw it either. Rick gets the weekly `Eagle Eyes` prize. |
Welcome Guest, Not a member yet? Register Sign In |