I will describe how to develop a new wab app as an eIrene module by implementing a simple "Hello World" module in Turkish language.
Visitors of eIrene portal can access its module pages by making use of its name. In this example I will use "merhabadunya" (helloworld in English) as the name of the new module.
When finished, the merhabadunya module main page will be accessed via the URL "http://eirene_sunucu_adresi/?im=merhabadunya".
merrhabadunya module's UI will be composed of three pages total:
For any module one should design at least one file as display template in XSLT language and named <module's_name>.xsl.
In our example the name of this template file will be merhabadunya.xsl .
PHP file may be necessery if any script in server side is needed. The name of the PHP file should be in the form <module's_name>.php .
In our example module we need a server side script (function) for finding out the IP address of the visitor. Therefore, we will develop the necessary PHP function inside the file named merhabadunya.php
As soon as we develop and place these two files our new module will be ready to serve page requests.
For the two files (the xslt template and php script file) of the module please use the "ileri →" link just at the end of the page.
To look at the resulting module's pages at the YÖRENET portal please click here.
|Add Comment (please login)|