A complete platform for building web applications.

Overview

ErtikazOS built to be an application portal which contains many applications.

Application structure

ErtikazOS application convention is almost the same of CodeIgniter application which means you have to create:

  • Migration file.
  • Seeder file.
  • Models a sub-folder is strongly recommended.
  • Controllers a sub-folder is strongly recommended.
    • routes.php inside the sub-folder.
  • Views a sub-folder is strongly recommended.
    • layout.php inside the sub-folder.
  • Languages one file for each application.

Let's explain each one and use creator command to generate files.

Migration

Migrations allow your application to create or later your database schema, file name must be in YYYYMMDDHHIISS + application name + .php format.

Command:

php creator make migration addressbook

Output:

migrations/20150101000001_addressbook.php

Seeder

Seeder allow your application to seed it's information and other data in database, file name must be in YYYYMMDDHHIISS + application name + .php format.

Command:

php creator make seeder addressbook

Output:

migrations/seeds/20150101000001_addressbook.php

Models

Models allow your application to deal with database, file name must be in {app-name}/{model-name}_model.php format.

Command:

php creator make model group AddressBook

Output:

models/AddressBook/Group_model.php

Controllers

Controllers is a layer between model and view, file name must be in {app-name}/{controller-name}.php format.

Command:

php creator make controller group AddressBook

Output:

controllers/AddressBook/Group.php
controllers/AddressBook/routes.php
language/arabic/addressbook_lang.php
language/english/addressbook_lang.php

Views

Views display the , file name must be in {app-name}/{controller-name}/{method}.php format.

Command:

php creator make view group AddressBook

Output:

views/addressbook/layout.php
views/addressbook/group/create.php
views/addressbook/group/edit.php
views/addressbook/group/list.php
views/addressbook/group/show.php

Languages

Languages file help you to translate your application and it is automatically generated when controller created, file name must be in {app-name}_lang.php format.