diff --git a/airtime_mvc/application/Bootstrap.php b/airtime_mvc/application/Bootstrap.php index 465698b2e..9acf6f7f6 100644 --- a/airtime_mvc/application/Bootstrap.php +++ b/airtime_mvc/application/Bootstrap.php @@ -1,13 +1,17 @@ getResource('view'); - $view->addHelperPath('../application/views/helpers', 'Airtime_View_Helper'); + $view->addHelperPath(APPLICATION_PATH . 'views/helpers', 'Airtime_View_Helper'); } protected function _initTitle() diff --git a/airtime_mvc/public/airtime-boot.php b/airtime_mvc/application/airtime-boot.php similarity index 84% rename from airtime_mvc/public/airtime-boot.php rename to airtime_mvc/application/airtime-boot.php index cc0430f34..052755250 100644 --- a/airtime_mvc/public/airtime-boot.php +++ b/airtime_mvc/application/airtime-boot.php @@ -32,16 +32,16 @@ defined('VERBOSE_STACK_TRACE') // Ensure library/ is on include_path set_include_path(implode(PATH_SEPARATOR, array( get_include_path(), - realpath(APPLICATION_PATH . '/../library') + realpath(LIB_PATH) ))); -set_include_path(APPLICATION_PATH . '/common' . PATH_SEPARATOR . get_include_path()); +set_include_path(APPLICATION_PATH . 'common' . PATH_SEPARATOR . get_include_path()); //Propel classes. -set_include_path(APPLICATION_PATH . '/models' . PATH_SEPARATOR . get_include_path()); +set_include_path(APPLICATION_PATH . 'models' . PATH_SEPARATOR . get_include_path()); //Controller plugins. -set_include_path(APPLICATION_PATH . '/controllers/plugins' . PATH_SEPARATOR . get_include_path()); +set_include_path(APPLICATION_PATH . 'controllers/plugins' . PATH_SEPARATOR . get_include_path()); //Zend framework if (file_exists('/usr/share/php/libzend-framework-php')) { @@ -52,10 +52,10 @@ if (file_exists('/usr/share/php/libzend-framework-php')) { require_once 'Zend/Application.php'; $application = new Zend_Application( APPLICATION_ENV, - APPLICATION_PATH . '/configs/application.ini' + CONFIG_PATH . 'application.ini' ); -require_once(APPLICATION_PATH . "/logging/Logging.php"); +require_once(APPLICATION_PATH . "logging/Logging.php"); Logging::setLogPath('/var/log/airtime/zendphp.log'); // Create application, bootstrap, and run diff --git a/airtime_mvc/application/configs/config-check.php b/airtime_mvc/application/configs/config-check.php new file mode 100644 index 000000000..c5e940565 --- /dev/null +++ b/airtime_mvc/application/configs/config-check.php @@ -0,0 +1,182 @@ + + +
+ + + + + ++ Component + | ++ Description + | ++ Solution + | +
+ Zend + | ++ Zend MVC Framework + | +>
+ >
+ Ubuntu: try running sudo apt-get install libzend-framework-php
+ Debian: try running sudo apt-get install zendframework
+
+ |
+
+ Postgres + | ++ PDO and PostgreSQL libraries + | +>
+ >
+ Try running sudo apt-get install php5-pgsql
+
+ |
+
+ Database + | ++ Database configuration for Airtime + | +>
+ >
+ Make sure you aren't missing any of the Postgres dependencies in the table above.
+ If your dependencies check out, make sure your database configuration settings in
+ airtime.conf is correct and the Airtime database was installed correctly.
+
+ |
+
+ Looks like something went wrong! If you've tried everything we've recommended in the table above, come + visit our forums + or check out the manual. +
+ ++ Your Airtime station is up and running! +
+ +- Component - | -- Description - | -- Solution - | -
- Zend - | -- PHP MVC Framework - | ->
- >
- Ubuntu: try running sudo apt-get install libzend-framework-php
- Debian: try running sudo apt-get install zendframework
-
- |
-
- Database - | -- PostgreSQL data store for Airtime - | ->
- >
- Try running sudo apt-get install php5-pgsql php5-mysql
-
- |
-
- Looks like something went wrong! If you've tried everything we've recommended in the table above, come - visit our forums - or check out the manual. -
- -- -
-