summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorBjörn Geiger2011-06-25 16:35:35 +0200
committerBjörn Geiger2011-06-25 16:35:35 +0200
commitb92142fb247cf9e3f090f233354d8fca26be8133 (patch)
tree086bd7af6cad5c9f12004b138d68de5a3d97c31c /public
parentZend Application hinzugefügt (diff)
downloadpoolctrl-b92142fb247cf9e3f090f233354d8fca26be8133.tar.gz
poolctrl-b92142fb247cf9e3f090f233354d8fca26be8133.tar.xz
poolctrl-b92142fb247cf9e3f090f233354d8fca26be8133.zip
Zend Application hinzugefügt
Diffstat (limited to 'public')
-rw-r--r--public/.htaccess7
-rw-r--r--public/index.php26
2 files changed, 33 insertions, 0 deletions
diff --git a/public/.htaccess b/public/.htaccess
new file mode 100644
index 0000000..7fb009b
--- /dev/null
+++ b/public/.htaccess
@@ -0,0 +1,7 @@
+
+RewriteEngine On
+RewriteCond %{REQUEST_FILENAME} -s [OR]
+RewriteCond %{REQUEST_FILENAME} -l [OR]
+RewriteCond %{REQUEST_FILENAME} -d
+RewriteRule ^.*$ - [NC,L]
+RewriteRule ^.*$ index.php [NC,L]
diff --git a/public/index.php b/public/index.php
new file mode 100644
index 0000000..a7ade9f
--- /dev/null
+++ b/public/index.php
@@ -0,0 +1,26 @@
+<?php
+
+// Define path to application directory
+defined('APPLICATION_PATH')
+ || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
+
+// Define application environment
+defined('APPLICATION_ENV')
+ || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
+
+// Ensure library/ is on include_path
+set_include_path(implode(PATH_SEPARATOR, array(
+ realpath(APPLICATION_PATH . '/../library'),
+ get_include_path(),
+)));
+
+/** Zend_Application */
+require_once 'Zend/Application.php';
+
+// Create application, bootstrap, and run
+$application = new Zend_Application(
+ APPLICATION_ENV,
+ APPLICATION_PATH . '/configs/application.ini'
+);
+$application->bootstrap()
+ ->run(); \ No newline at end of file