Directories


Zera has a defined directory structure.

  • index.pl
  • api.pl
  • Zera
    • Admin
    • User
    • Blog
    • MyModule
  • templates
  • static
    • home.html
    • mypage.html
  • data

index.pl

This is the main file that is executed each time you see a Zera web site.

api.pl

This is the main file for the Zera API interface.

Zera

The Zera folder contains all the Zera modules, including the native ones and the ones you create.

templates

The templates folder contains the templates used to generate the website pages, each sub-folder on this location is a different template.

Note.- Each workspace uses a different template.

static

This directory has all the html files to create static pages. For example, to access mypage.html you use the URL http://myhost/mypage, but if you want to access to home.html you only need to access the domain http://myhost. This static page is also complemented using the main template.

data

All the website data must be stored on this folder, such as images and user generated files.