Skip to content
This repository was archived by the owner on May 28, 2019. It is now read-only.

Installation and Configuration

Duwwel edited this page Apr 10, 2013 · 10 revisions

The following are required:

  • PHP 5.4+
  • Apache configured with .htaccess

Installation

Extract files into your folder. Modify .htaccess and set RewriteBase to your base directory. E.g.

RewriteBase /subfolder/ mostly for dev environments such as on xampp

or

RewriteBase / for domains

Configuration

Configuration examples are found in the conf folder.

Site Configuration

Duplicate the site.conf.xmpl.php file. Rename it to site.conf.php and modify as follows:

//Example site configuration. Rename file to site.conf.php for deployed configuration

$_TSAMA_CONFIG['NAME'] = 'Your Site Name';

$_TSAMA_CONFIG['LOGO'] = 'yourlogo.png';

$_TSAMA_CONFIG['COMPRESS'] = TRUE; //Compress output or not

$_TSAMA_CONFIG['HIDE_TSAMA'] = TRUE; //Hide tsama or not

$_TSAMA_CONFIG['THEME'] = 'yourtheme'; //Your theme name

$_TSAMA_CONFIG['LAYOUT'] = 'yourlayout'; //Your custom default layout

$_TSAMA_CONFIG['LANGUAGE'] = 'en'; //Site Language

$_TSAMA_CONFIG['DEBUG'] = TRUE; //Show debug info or not.

?>

Database Configuration

Duplicate the db.conf.xmpl.php file. Rename it to db.conf.php and modify as follows:

//Example db configuration. Rename file to db.conf.php for deployed configuration

$_DB['Host'] => 'localhost'; //database host

$_DB['Username'] => 'Username'; //database user

$_DB['Password'] => 'Password'; //databse password

$_DB['Name'] => 'Database_Name'; //database name

?>

Table of contents

Introduction

Installation and Configuration

Predefined Constants and Globals

Creating a Layout

Creating a Theme

Creating a Service

Clone this wiki locally