Skip to content
hectorl edited this page Nov 6, 2012 · 3 revisions

The configuration file is in config/ folder. It has three sections by default with the following variables:

PROJECT

Project configuration:

  • project_name: Name of the project. It could be used on title tags or simply to have a reference to the project.
  • env: Development enviorement. Used to know which configuration file should be used.
  • show_errors: Used in index.php. Just a boolean value.
  • maintenance: Set the project under maintenance status. It shows a page with a "not active" message.

DB

Database configuration:

  • db_host: Database host
  • db_name: Database name
  • db_user: Database user
  • db_pass: Database password

SITE

Site configuration:

  • url_site: URL site
  • dir_site: Real path of the project in the server
  • path: Just in case of our project is in a subfolder and its URL look like these: http://host.com/project_folder/. In the example case, the value will be "project_folder".
  • timezone: We need this value to avoid a Smarty warning error. You can get this values from http://php.net/manual/en/timezones.php
  • google_analytics: Google Analytics ID
  • default_lang: Default language used in the project

Clone this wiki locally