Now that we have a page, we will probably want to link to it. Links to Andromeda pages are always made by setting the GET parameter "x6page" to the name of the page. This example shows two simple links:
Link to Hello World
Another Link
The first link is the bare minimum that you need to get to a page. You do not need the complete URL such as "http://...." You also do not need to name the file index.php because Andromeda will go to that file automatically if nothing is specified.
On some public sites it may be judged unsuitable to have long links like "?x6page=xxxxx&parm=5&anotherparm=value...." If you prefer, you can write links in this form:
A Friendly URL
This is a Pretty URL
This link goes to exactly the same place
As the example above shows, there are two completely different ways to make either link. The first form, using "pages/...", follows these rules:
You can use the pretty URL system to create links to file downloads without having to provide direct access to your filesystem. The following URL looks like a simple page access:
My Cool Song, Pretty URL
Same Link, Different Format
By following the rules listed above, we know that the first link and the second link will go to exactly the same place. This is because:
You can then code up an Andromeda page "downloads" that would be in file application/x6downloads.php and contain class x6downloads. In the program's x6main() function you can do whatever processing the program may require to determine if the user can actually obtain they file they are requesting.