Enabling PHP-GTK2 code completion in Zend Studio 5.5 for a project is very simple. The following example is given on Windows, but the steps should be the same on any supported platform.
First run the
Gtk_Dumper.php extractor as described on the previous page, and save the generated skeleton file to some stable directory, say
e:\src\php\php-gtk\stubs-2.0.1.php for code completion on the PHP-GTK 2.0.1 version.
Now, start Zend Studio...
Create a new project...
Add the path to the just-generated skeleton file using the
Add path button...
Then click on
Finish to create the project. Now let's create a new PHP application
Notice that code completion in Zend Studio 5.5 shows the types of parameters (like
GtkObject on the example below) and class constants (like the
Gtk::BUILDER_ERROR_* constants in the example below):