Beispiel #1
0
 public static function setupEnvironment()
 {
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', true);
     date_default_timezone_set('America/Sao_Paulo');
     self::$root = "../";
 }
Beispiel #2
0
 public static function setupEnvironment()
 {
     error_reporting(E_ALL | E_STRICT);
     ini_set('default_charset', 'UTF-8');
     ini_set('display_errors', true);
     define('DEV', true);
     self::$root = "";
 }
Beispiel #3
0
 /**
  * Setup the application environment.
  */
 public static function setupEnvironment()
 {
     // Turn on error reporting.
     error_reporting(E_ALL | E_STRICT);
     // Set the default time zone.
     date_default_timezone_set('America/New_York');
     // Set the application root directory.
     self::$root = dirname(dirname(__FILE__));
 }
Beispiel #4
0
 public static function setupEnvironment()
 {
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', false);
     ini_set('max_execution_time', 300);
     ini_set('upload_max_filesize', '15M');
     ini_set('user_agent', 'Storytlr/1.0');
     mb_internal_encoding("UTF-8");
     self::$root = dirname(dirname(__FILE__));
 }
Beispiel #5
0
 public static function setupEnvironment()
 {
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', false);
     ini_set('max_execution_time', 300);
     ini_set('upload_max_filesize', '15M');
     ini_set('user_agent', 'Storytlr/1.0');
     mb_internal_encoding("UTF-8");
     self::$root = dirname(dirname(__FILE__));
     // Setup Zend autoloader
     $loader = Zend_Loader_Autoloader::getInstance();
     $loader->setFallbackAutoloader(true);
 }