Hi! right firstly I'm very new to PHP-GTK2, though I have done a small amount of php programming many years ago.
Gone through the manual, and followed some of the few tutorials available, and so far found it very easy to use! at least to make a window appear :)
The problem is I'm now stuck.. :)
What im trying to do is to make a crossplatform 'Site Shop' application, now this is a far too big off project to undertake on its own, so Ive subdivided into small areas to work on and hopefully learn PHP-GTK2.
Below is a screen shot of the wigets ive made in Glade, and then opened with PHP-GTK.
So my qestions are:
* Can I load a flatfile database? e.g. XML or ideally a OpenOffice ODT spreadsheet ?
* The second question is, how can I do this and have it displayed as a selectable row in the box below search?
* Are they any further tutorials to covering areas such as search strings or any other bit of application?
Regards!
And.
First Question: Yes. You can load anything you want, you do that with 'normal' PHP and bring it into a format you can load into a widget later. This has nothing to do with PHP-GTK persay until it is time to display it.
Second: You add the loaded data from First Question into the model of the GtkTreeView, maybe with GtkListStore::append.
Third: Again sort of out of the range of PHP-GTK. Unless all you want for a search is the 'GtkTreeView hit a letter and it goes to that row', you will have to write your own function to parse the data. You'll be away from PHP-GTK until you are ready to display the results.
Remember the GTK part of PHP-GTK is for user interface, the PHP part is for processing.