Very important, a must read
Author: Oliver C.
Submitted by: Kilandor
Date: 2007-07-26 04:51
Comments: (0)
Ratings:
 
Seditio is a dumb machine, it's simply picking datas from a MySQL database, and then sends those datas to clients (the HTML browsers) through a template engine, the "skin".

A skin is a set of files named xxx.tpl in the folders /skins/.../
A ".tpl" file is made of simple HTML code, plus some placeholders named "tags".

The tags are the codes between brackets, nested in the HTML code, like this :
{NEWS_LOGSTATUS}
{JRNEDIT_SUBTITLE}
etc

Nearly all pages (all but the popups) are built this way :

System things :

At the very beggining, Seditio connects to the MySQL database, grabs some global datas, loads the levels, the categories, statistics and perform a load of other actions. At this point nothing is sent to the client (your browser) yet.

The header :

Then it loads the file /system/header.php
This file mainly outputs the HTML code for the top of the website.
This is done through the TPL file : skins/.../header.tpl

The body :

Then the body of the page is loaded, and same as before, some HTML code is created for the middle of the page, still with a skin file.

The footer :

Then the file /system/footer.php is loaded.
It's outputing the HTML code for the bottom of the website.
And once again, this output is done through a TPL file : skins/.../footer.tpl

So a page is always made of 3 separate parts :

  • The header (the top) : Always header.tpl

  • The body of the page (the middle) : A file *.tpl

  • The footer (the bottom) : Always footer.tpl


The body can be the the home page, the forums, an event, userlist, the administration panel, a plugin, etc.
Copyright © 2008 Domain.Com. All Rights Reserved.
Page created in 0.347 seconds