[TYPO3-mvc] Externel XML/JSON
Jochen Rau
jochen.rau at typoplanet.de
Fri Apr 30 14:20:13 CEST 2010
Hi Sascha.
On 30.04.10 13:41, S.Korth wrote:
> Jochen Rau schrieb:
>> 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.
>
> the data is domain related (i think). But when i use the Repository i
> only get inherit functions which uses db Queries, or iam wrong? For
> example a Feed could be a source. But maybe iam wrong.
Currently, you have to implement your own methods. The Refactoring of
the Dispatcher is on my schedule. This will enable you to replace the
Backend with your own implementation. So, you can write a XmlFileBackend
if you like.
> By the way, great job with extbase ;-)
You're welcome.
Regards
Jochen
More information about the TYPO3-project-typo3v4mvc
mailing list