Re: Fatal Error : Call to undefined method MydataSource::query()
cricket :
The method is in the DataSource object. Hence, you don't see an error
when you call it properly.
Okay,
before your answer,
in my data source I put the following
public function totalfeeds () {
// get data from remote source
}
public function query(){
return $this->totalfeeds();
}
Is that okay?
The first time I am working with a data source. documentation is of no help.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home