Script and Variables
- Set of Alinous-Script and html
- Basic script and html
- Script variables
- Type of variables
- The Array variables
- Reserved variables
The Alinous-Module consists of Alinous-Script and HTML, and sometimes HTML does not exist.
When you write sctipt to download module, or module to redirecting other page, the html file is not necessary.
The execution order is
- Execute Alinous-Script
- Render HTML with the result of Alinous-Script
You can make variables in the Alinous-Script.
This script returns 0, then the exexution process goes to the html file.
if the value of return value is not 0, then the page will forwarded to other page.
The script variable is DOM liked, and you can use the parent-children structure by separating with ".".
When the variable does not exists, the it is same with having null value.
There are 3 type of Alinous-Script variable.
The type of value is decided when substituting value.
You can watch them by using debugger.
You can use array variables. The variables in the array is automatically allocated on substitutions.
You can watch it with debugger.
Some variables are reserved by Alinous-Core server. These are below.
|$IN||Parameters of GET or POST method in HTTP protocol|
|$SESSION||Session key and stored values in the session|