[TYPO3-mvc] Externel XML/JSON

Jochen Rau jochen.rau at typoplanet.de
Fri Apr 30 09:54:34 CEST 2010


Hi Sascha.

On 27.04.10 09:18, S.Korth wrote:
> i build my Extension with Extbase and i need to read an external xml
> API/File. Can i use the repository for such things? Would be nice
> because of the MVC Pattern. In my case the xml file is the data source,
> and not the db. Or is it wrong to use the rep. for this.

It depends. If you store domain related data in the file then a 
Repository is the right place (it's actually its main purpose to 
abstract the data access from the source). If you store configuration in 
it, the Controller might be better.

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list