Yii Framework Forum: Error Related To Webuser() - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Error Related To Webuser() Declaration of WebUser::login() should be compatible with CWebUser::lo Rate Topic: -----

#1 User is offline   ramamoorthy071 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 23-November 12

Posted 27 November 2012 - 07:43 AM

dear members anyone anyone help me to come out of this error.

Declaration of WebUser::login() should be compatible with CWebUser::login($identity, $duration = 0)

thanks in advance...
0

#2 User is offline   Boaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 367
  • Joined: 23-January 11

Posted 27 November 2012 - 07:45 AM

View Postramamoorthy071, on 27 November 2012 - 07:43 AM, said:

dear members anyone anyone help me to come out of this error.

Declaration of WebUser::login() should be compatible with CWebUser::login($identity, $duration = 0)

thanks in advance...


This is a general PHP issue. Probably, you extended CWebUser but your login() method doesn't have the same parameters list. This list should be identical, including default values, types (in this case there are none such) etc.

Please post similar questions to 'general help' forum and not this one, next time.
Therapeutic PHP sessions My LinkedIn Profile
0

#3 User is offline   ramamoorthy071 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 23-November 12

Posted 27 November 2012 - 07:51 AM

View PostBoaz, on 27 November 2012 - 07:45 AM, said:

This is a general PHP issue. Probably, you extended CWebUser but your login() method doesn't have the same parameters list. This list should be identical, including default values, types (in this case there are none such) etc.

Please post similar questions to 'general help' forum and not this one, next time.

0

#4 User is offline   ramamoorthy071 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 23-November 12

Posted 27 November 2012 - 07:51 AM

thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users