The fastest easiest way to get it right.

Hello World

Andromeda aims to keep simple things simple and to make complicated things manageable. With that in mind, a basic Hello World! program is a very simple thing to do. The following code snippet demonstrates this:

class x6helloworld extends androX6 {
    function x6main() {
        echo "Hello World!";

As we can see, every Andromeda page exists as a PHP file that has a class in it. The class always extends the built-in class "androX6" (note the case, the "X" is uppercase the rest is lowercase). The class itself is always named "x6" plus the name of the page:

x6 + {pageName} = x6helloworld

This program should be saved in a file named "x6helloworld.php" in your application directory.

To see this page, go to your application, log in, and then type into the address bar "/path/to/app/index.php?x6page=helloworld".

Linux file names are case-sensitive. You must name your file using the exact case that you provide to the x6page parameter.

The x6main should send its HTML directly to output. There is no need to worry about buffering, Andromeda takes care of that.

comments powered by Disqus
Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2013, Licensed under the GPL Version 2