On Dec 4, 2010, at 12:23, NOOOOB wrote:

> Is there another way to read foreign data and save it to database?. So
> you suggest that I should write another model to write data to my
> database?,

Having one model per data source seems reasonable to me, and you're talking 
about two data sources: 1) Google News, 2) your own database. But, although I 
am an experienced PHP developer, I am new to CakePHP, so perhaps I should step 
back and let someone more experienced with this framework take over. PHP of 
course has many ways to accomplish most things, but perhaps there are CakePHP 
best practices for this kind of situation that I'm not aware of.


> I think that the best way is to make index page with 2 buttons, 1
> button will use controller and model to get this rss data and another
> button will save this data to database? Am I thinging correct?

I don't know how you want your front-end to look and function, so I can't 
advise you about how many buttons you should have.


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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to