Yii Framework Forum: How To Fix Cexception? - Yii Framework Forum

Jump to content

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

How To Fix Cexception? Rate Topic: -----

#1 User is offline   ehmhuge 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 26-September 12

Posted 01 October 2012 - 01:07 AM

Hi guys, I always having this kind of error:

CDbDataReader and its behaviors do not have a method or closure named "queryAll".

throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".',

I don't know where did I went wrong?

What is the possible issue here? Thanks.
0

#2 User is offline   Reza m 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 147
  • Joined: 07-March 12

Posted 01 October 2012 - 03:06 AM

View Postehmhuge, on 01 October 2012 - 01:07 AM, said:

Hi guys, I always having this kind of error:

CDbDataReader and its behaviors do not have a method or closure named "queryAll".

throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".',

I don't know where did I went wrong?

What is the possible issue here? Thanks.


CDbDataReader doesn't have queryAll method you should use readAll

queryAll is a method of CDbCommand

for complete details read this documentation
1

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