Been experimenting with php-gtk over the last few days. When I was trying to use a liststore, php threw a fatal error. “Undefined class constant ‘TYPE_STRING’”.
After testing the example from the PHP_GTK site I got the same errror. The PHP-GTK example is out of date. Starting with PHP-GTK 2.0.0 the TYPE constants were moved from the Gtk::class to Gobject, so use Gobject::TYPE_STRING instead.
Below is the correct code.
PHP GTK: liststore error (undefined class constant)
Leave a Comment
You must be logged in to post a comment.
Trackbacks and Pingbacks:
- westworld | PHP GTK: liststore error (undefined class constant) | Coder Online - Pingback on 2009/12/08/ 18:44
1 Comments.