Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Ridgway
committed
Jul 23, 2010
1 parent
89502d4
commit 920daeb
Showing
8 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
class Bootstrap extends \ZendX\Application53\Application\Bootstrap | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Core; | ||
|
||
class Bootstrap extends \Zend_Application_Module_Bootstrap | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Core\Controller; | ||
|
||
class IndexController extends \ZendX\Application53\Controller\Action | ||
{ | ||
public function indexAction() | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
WORKING |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[production] | ||
; PHP INI Settings | ||
phpSettings.display_startup_errors = 0 | ||
phpSettings.display_errors = 0 | ||
|
||
resources.frontController.moduleDirectory = APPLICATION_PATH | ||
|
||
resources.modules = [] | ||
|
||
; Database Settings | ||
resources.db.adapter = "pdo_mysql" | ||
resources.db.params.host = "localhost" | ||
resources.db.params.dbname = "issue" | ||
resources.db.params.username = "root" | ||
resources.db.params.password = "root" | ||
|
||
[staging : production] | ||
; PHP INI Settings | ||
phpSettings.display_startup_errors = 1 | ||
phpSettings.display_errors = 1 | ||
resources.frontController.throwExceptions = 0 | ||
|
||
[testing : production] | ||
; PHP INI Settings | ||
phpSettings.display_startup_errors = 1 | ||
phpSettings.display_errors = 1 | ||
resources.frontController.throwExceptions = 1 | ||
|
||
[development : production] | ||
; PHP INI Settings | ||
phpSettings.display_startup_errors = 1 | ||
phpSettings.display_errors = 1 | ||
resources.frontController.throwExceptions = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SetEnv APPLICATION_ENV development | ||
|
||
RewriteEngine On | ||
RewriteCond %{REQUEST_FILENAME} -s [OR] | ||
RewriteCond %{REQUEST_FILENAME} -l [OR] | ||
RewriteCond %{REQUEST_FILENAME} -d | ||
RewriteRule ^.*$ - [NC,L] | ||
RewriteRule ^.*$ index.php [NC,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
if (!defined('APPLICATION_PATH')) { | ||
define('APPLICATION_PATH', realpath(dirname(__FILE__) | ||
. DIRECTORY_SEPARATOR . '..' | ||
. DIRECTORY_SEPARATOR . 'application')); | ||
} | ||
|
||
if (!defined('APPLICATION_ROOT')) { | ||
define('APPLICATION_ROOT', realpath(dirname(__FILE__) | ||
. DIRECTORY_SEPARATOR . '..')); | ||
} | ||
|
||
if (!defined('APPLICATION_ENV')) { | ||
if (getenv('APPLICATION_ENV')) { | ||
$env = getenv('APPLICATION_ENV'); | ||
} else { | ||
$env = 'production'; | ||
} | ||
define('APPLICATION_ENV', $env); | ||
} | ||
|
||
if (!defined('LIBRARY_PATH')) { | ||
define('LIBRARY_PATH', realpath( APPLICATION_ROOT | ||
. DIRECTORY_SEPARATOR . '..' | ||
. DIRECTORY_SEPARATOR . 'lib')); | ||
} | ||
|
||
if (!defined('ZEND_PATH')) { | ||
define('ZEND_PATH', realpath( APPLICATION_ROOT | ||
. DIRECTORY_SEPARATOR . '..' | ||
. DIRECTORY_SEPARATOR . 'vendor' | ||
. DIRECTORY_SEPARATOR . 'ZendFramework' | ||
. DIRECTORY_SEPARATOR . 'library')); | ||
} | ||
|
||
set_include_path( APPLICATION_PATH . PATH_SEPARATOR | ||
. LIBRARY_PATH . PATH_SEPARATOR | ||
. ZEND_PATH . PATH_SEPARATOR | ||
. get_include_path() | ||
); | ||
|
||
include('ZendX/Application53/Application.php'); | ||
$application = new \ZendX\Application53\Application( | ||
APPLICATION_ENV, | ||
APPLICATION_PATH . DIRECTORY_SEPARATOR . 'config.ini' | ||
); | ||
$application->bootstrap()->run(); |