Hello World
Many frameworks come with a “Hello World!” example. This is usually too simple to tell much about the concepts of a framework. But for those, who are looking for it - here it is:
HelloWorld.php:
<?PHP
require 'GGF.php';
$mainWindow = new
HelloWorldMainWindow(windowContext(0,"HelloWorldMainWindow")->contextID);
$mainWindow->open();
?>
HelloWorldMainWindow.php
<?
class HelloWorldMainWindow
extends GGFControlMainWindow {
protected function initWindow($mc) {
$this->pane
= new GGFControlPane($this,"_main");
$this->pane->add(new
GGFStaticfield("hellofield",""));
}
protected function fillControls($mc) {
$this->pane->named("hellofield")->setValue("Hello
World !");
}
}
?>
If you want to see, what it produces:

or click here. You see that you can produce also very simple window-layouts with GGF. For that GGF (and any other PHP framework) certainly is overkill. But your tasks probably will not limited to “Hello World!”.
For a more
meaningful but still very short (some 30 LOC) sample, read 21 Steps to your own Phonebook Application (175 KB
zipped doc)
For a more in-depth look what can be done with the GGF framework, see the live-demo.
After installation of the GGF framework you can try out the online-demo on your machine. For this type
http://localhost/ggf/GGFDemo.php
into the address line of your web browser.