I noticed the fact that my TM::MyCSV class was missing an example script. I think this is a very important part of a good PHP Classes package. There are already some small examples included in the documentation. But you can not start to play around with these examples "out of the box". You need to read a lot and understand most of the basic concepts. And believe me, there is a lot to learn. The class is very simple but can do very complex things.
With the new example script you can start without reading anything. Simply copy all files to your web server. Here is what you can do with the script: Insert new rows to a table (including creation of the CSV file if it does not exist), delete existing rows and sort the rows by different columns in ascending or descending order. There are a lot more comments included in the script.
Besides the administrator class, which is also some kind of example, this is the first example here at PHP Classes. Now tell me: What would you like to see next? More small examples? Another complex one? How to use the limit feature for pagination? How to use the callback interface of the administrator class to create your own administrator panel for your TM::MyCSV based photo blog (like http://fotos.maettig.com) or movie database (like http://roman.maettig.com)? There are many possibilities.
No comments were submitted yet.