Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
index.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  */
10 
11 //This determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user.
12 ini_set('display_errors', true);
13 //error_reporting
14 error_reporting(E_ALL);
15 //Sets the default timezone used by all date/time functions in a script
16 date_default_timezone_set('Europe/Vienna');
17 
18 // change the following paths if necessary
19 $yii = dirname(__FILE__) . '/../../framework/yii.php';
20 
21 // remove the following lines when in production mode
22 defined('YII_DEBUG') or define('YII_DEBUG', true);
23 // specify how many levels of call stack should be shown in each log message
24 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
25 
26 require_once($yii);
27 require_once('../../common/components/Configuration.php');
28 //Build configuration file
29 $config = Configuration::build(dirname(__FILE__) . '/../config/main.php');
30 //Run application
31 Yii::beginProfile('application');
32 Yii::createWebApplication($config)->run();
33 Yii::endProfile('application');