PHP Classes

File: conf/app.php

Recommend this page to a friend!
  Classes of Ali Sharifi   MVC 4 Dummies   conf/app.php   Download  
File: conf/app.php
Role: Configuration script
Content type: text/plain
Description: Sample output
Class: MVC 4 Dummies
Web development PHP MVC framework
Author: By
Last change:
Date: 9 years ago
Size: 1,574 bytes
 

Contents

Class file image Download
<?php
/*
 * created by Keramatifar
 * Edited by Ali Sharifi 93-12-19
 */
session_start();
include
'messages.php';
// DIR configs
define("SITE_ROOT", dirname(dirname(__FILE__)));
define("VIEW_DIR", SITE_ROOT . '/views/');
define("CONTROLLER_DIR", SITE_ROOT . '/controllers/');
define("MODEL_DIR", SITE_ROOT . '/models/');
define("CORE_DIR", SITE_ROOT . '/core/');
define("LIBS_DIR", SITE_ROOT . '/libs/');
//DIR configs about views
define('SMARTY_DIR', SITE_ROOT . '/libs/smarty/');
define('TEMPLATE_DIR', VIEW_DIR . 'templates');
define('VIEW_CACHE_DIR', VIEW_DIR . 'cache');
define('VIEW_CONFIG_DIR', VIEW_DIR . 'configs');
define('COMPILE_DIR', VIEW_DIR . 'templates_c');
//DB configs
define('DB_PERSISTENCY', 'true');
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'simple_php_mvc');
define('PDO_DSN', 'mysql:host=' . DB_SERVER . ';dbname=' . DB_DATABASE);

define('IS_WARNING_FATAL', true);
define('DEBUGGING', true);
// The error types to be reported
define('ERROR_TYPES',E_ALL);

// Settings about mailing the error messages to admin
define('SEND_ERROR_MAIL', false);
define('ADMIN_ERROR_MAIL', 'info@your-domain.com');
define('SENDMAIL_FROM', 'info@your-domain.com');
ini_set('sendmail_from', SENDMAIL_FROM);

// By default we don't log errors to a file
define('LOG_ERRORS', true);
define('LOG_ERRORS_FILE', 'errors_log.txt'); // Windows
 //define('LOG_ERRORS_FILE', '/home/username/tshirtshop/errors.log'); // Linux
define('SITE_GENERIC_ERROR_MESSAGE','Something is wrong ... Please try later');

?>