2010年7月25日星期日

Re: [fw-auth] Method "hasIdentity" does not exist and was not trapped in __call()

Are you calling authenticate statically? If so, get the singleton instance and call it on that instead:

$auth = Zend_Auth::getInstance();
$auth->authenticate($adapter);

--
Hector Virgen
Sr. Web Developer
Walt Disney Parks and Resorts Online



On Sun, Jul 25, 2010 at 2:00 AM, jiewmeng <jiewmeng@gmail.com> wrote:

i am using a custom Zend_Auth_Adapter i implemented. code is here. when i do a Zend_Auth::authenticate($adapter);, i get "Method "hasIdentity" does not exist and was not trapped in __call()". i noticed that the problem comes from the class Zend_Auth. abt line 123

if ($this->hasIdentity()) { 	$this->clearIdentity(); }

but the funny thing is just below that function, is public function hasIdentity() so the function exists definately??


View this message in context: Method "hasIdentity" does not exist and was not trapped in __call()
Sent from the Zend Auth mailing list archive at Nabble.com.


没有评论: