Customize aiki installation

From Aikiframework wiki

Jump to: navigation, search

Contents

Aiki Installer

Aiki installer is located in assets/apps/installer. Don't worry, if aiki doesn't find config file, it launchs installation.

If you have developed a web site in aiki and what make a installer, use Aiki installer, customising, if you want, appearance (css), messages, and installing your own tables.

Messages

Just copy assets/apps/installer/defaults.php to defaultsSite.php and change title, welcome text and requirements text.

Appearance

Change variable $INSTALLER_CSS defined in siteDefaults to load you own list of css files. Else, aiki will use /themes/default/installer_upgrader.css. More information can found in defaults.php.

You own tables and SQL

If you site needs create table, insert initial values, and have default values, you must create this sql file:

  • sql/CreateTableSite.sql. Here puts sql statements necessary to create tables.
CREATE TABLE IF NOT EXISTS 'table_name' ( ... ) ;
  • sql/InsertDefaultsSite.sql

Here puts SQL that will be execute in installation and each upgrade.

  • sql/InsertVariable-inSite.sql

Here puts SQL that will be execute only in installation.


In all case, agrupate SQL insert statements and separate each SQL by:

-- ------------------------------------------------------
Personal tools