开发者

Is there a CSV import generator for Symfony?

This seems like an obvious thing, but I can't seem to find an implementation.

In the same way I can run:

./symfony doctrine:generate-admin backend MyModel

I'd like to be able to do something like:

./symfony doctrine:generate-importer backend MyModel

Which would create a basic file upload for a CSV file, with headings matched to the column names.

Do开发者_如何学运维es such a thing exist?


Ah sorry Colin i had the wrong end of the stick. There is this. sfCsvPlugin - 0.1.2

sfCsvReader: Reads a CSV file. sfCsvWriter: Writes an array in CSV style. sfCsvPropelWriter: Uses a sfCsvWriter to help you to dump data from your model through a Criteria object and doSelectRS method in CSV style.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜