Message: Undefined property: Register::$ezauth - 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: Message: Undefined property: Register::$ezauth (/showthread.php?tid=8337) |
Message: Undefined property: Register::$ezauth - El Forum - 05-14-2008 [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? Message: Undefined property: Register::$ezauth - El Forum - 05-14-2008 [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. Message: Undefined property: Register::$ezauth - El Forum - 05-15-2008 [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... Message: Undefined property: Register::$ezauth - El Forum - 05-15-2008 [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. Message: Undefined property: Register::$ezauth - El Forum - 05-15-2008 [eluser]v33s[/eluser] Have reference here: Code: ....... It must be that controller Message: Undefined property: Register::$ezauth - El Forum - 05-15-2008 [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. Message: Undefined property: Register::$ezauth - El Forum - 05-15-2008 [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 Message: Undefined property: Register::$ezauth - El Forum - 05-15-2008 [eluser]Rick Jolly[/eluser] Ah, it's a simple spelling mistake: Code: function __contruct() Message: Undefined property: Register::$ezauth - El Forum - 05-15-2008 [eluser]v33s[/eluser] OMG I do not saw it ;( But thanks Message: Undefined property: Register::$ezauth - El Forum - 05-15-2008 [eluser]wiredesignz[/eluser] Wow, I never saw it either. Rick gets the weekly `Eagle Eyes` prize. |