Im using rss datasource made in this tutorial:
http://blog.loadsys.com/2009/06/19/cakephp-rss-feed-datasource/
My database configuration for this datasource loks like this:
var $googleNews = array(
'datasource' => 'rss',
'feedUrl' => 'http://news.google.com/news?
pz=1&ned=us&hl=en&output=rss',
'encoding' => 'UTF-8',
'cacheTime' => '+1 day',
My model:
<?php class GoogleNews extends AppModel {
var $name ='News';
var $useTable = false;
var $useDbConfig = 'googleNews';
}
?>
But when I try to run my application I have this error
Error: Database table google_news for model GoogleNews was not found.
But when I create a google_news table in database cake is reading data
from my database. What's wrong? I declaired in my model wich db config
Im using and that Im not using any database table.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment