index.php
authorAlan Knowles <alan@roojs.com>
Mon, 8 Dec 2014 06:23:09 +0000 (14:23 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 8 Dec 2014 06:23:09 +0000 (14:23 +0800)
index.php

index e69de29..adfb158 100644 (file)
--- a/index.php
+++ b/index.php
@@ -0,0 +1,79 @@
+<?php
+
+
+ini_set('display_errors',1);
+
+ini_set('include_path', 
+    dirname(__FILE__). ':' . 
+    dirname(__FILE__).'/pear:' . 
+    dirname(__FILE__).'/pearfix:' . 
+    ini_get('include_path'));
+
+define('DB_DATAOBJECT_NO_OVERLOAD', true);
+
+require_once 'HTML/FlexyFramework.php';
+
+
+new HTML_FlexyFramework( array(
+    'project'=> 'Reddit',
+//        'appName' => 'SupportHK',
+//        'appNameShort' => 'supporthk',
+    'database' => 'mysql://root:@localhost/reddit', // local only
+    
+
+    'version' => '0.1',
+    'Pman' => array(
+        'storedir' => '/home/hydra'
+    ),
+    'locale' => 'en',//this is for the session
+    'DB_DataObject' => array(
+        'class_location' => implode(PATH_SEPARATOR, array(
+                dirname(__FILE__). '/Pman/Hydra/DataObjects',
+                dirname(__FILE__). '/Pman/Core/DataObjects',
+                dirname(__FILE__). '/Pman/Cms/DataObjects',
+                //dirname(__FILE__). '/Pman/Crm/DataObjects',
+        )),
+        'class_prefix' => 'Pman_Hydra_DataObjects_:Pman_Core_DataObjects_:Pman_Cms_DataObjects_',
+        
+    ),
+    'siteBaseURL' => 'http://'.$_SERVER['HTTP_HOST'].'/'.basename(__FILE__),         
+      
+    //?? used where - CMS?
+    /*'SiteName' => array(
+        'fullName' => 'Campaign',
+        'shortName' => 'campaign',
+    ),
+     */
+    'Pman_Cms' => array(
+        'view_name' => 'Desktop', 
+    ),
+    
+    'Pman_Crm' => array(
+        'server_baseurl' => 'http://'.$_SERVER['HTTP_HOST'].'/'.basename(__FILE__),
+    ),
+    
+//        'Mail' => array(
+//            'host' => '192.168.254.2',
+//        ),
+//      
+//     
+    
+    'HTML_Template_Flexy' => array(
+        'locale' => 'en',   //set a language for template engine
+        //'debug' => 1,
+        'DB_DataObject_translator' => 'cms_templatestr',
+//            'forceCompile' => true,
+        'site_prefix' => 'desktop', // the site prefix for template engine e.g. desktop/master.html
+//            'templateDir' => dirname(__FILE__) . '/Petition/mobile_templates',
+//            'url_rewrite' => 'images/:/web.Petition/Petition/mobile_templates/images/',
+    ),
+    'Pman_Images' => array(
+        'sizes' => array(
+            '300','50', '750', '1140', '560', '768', '600', '340', '250'
+        )
+    ),
+    
+));
+
+
+