0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
index.php
Go to the documentation of this file.
1 <?php
2 
3 // Define path to application directory
4 defined('APPLICATION_PATH')
5  || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
6 
7 // Define application environment
8 defined('APPLICATION_ENV')
9  || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
10 
11 // Ensure library/ is on include_path
12 set_include_path(implode(PATH_SEPARATOR, array(
13  realpath(APPLICATION_PATH . '/../library'),
14  realpath(APPLICATION_PATH . '/../application/models'),
15  get_include_path(),
16 )));
17 
18 // Zend_Application
19 require_once 'Zend/Application.php';
20 
30 $GLOBALS['THRIFT_ROOT']='Hypertable';
31 require_once 'Hypertable/ThriftClient.php';
32 
33 // Create application, bootstrap, and run
34 $application = new Zend_Application(
35  APPLICATION_ENV,
36  APPLICATION_PATH . '/configs/application.ini'
37 );
38 $application->bootstrap()
39  ->run();
40 
44 require_once 'HypertableConnection.php';
$application
Definition: index.php:34
$GLOBALS['THRIFT_ROOT']
Load Hypertable.
Definition: index.php:30