-
Notifications
You must be signed in to change notification settings - Fork 0
Installation and Configuration
The following are required:
- PHP 5.4+
- Apache configured with .htaccess
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 / mostly for domains
Configuration examples are found in the conf folder.
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.
?>
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
?>
Installation and Configuration
Predefined Constants and Globals
Creating a Layout
Creating a Theme
Creating a Service