Skip to content

Commit

Permalink
adding sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ridgway committed Jul 23, 2010
1 parent 89502d4 commit 920daeb
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sandbox/application/Bootstrap.php
@@ -0,0 +1,6 @@
<?php

class Bootstrap extends \ZendX\Application53\Application\Bootstrap
{

}
8 changes: 8 additions & 0 deletions sandbox/application/Core/Bootstrap.php
@@ -0,0 +1,8 @@
<?php

namespace Core;

class Bootstrap extends \Zend_Application_Module_Bootstrap
{

}
10 changes: 10 additions & 0 deletions sandbox/application/Core/Controller/IndexController.php
@@ -0,0 +1,10 @@
<?php

namespace Core\Controller;

class IndexController extends \ZendX\Application53\Controller\Action
{
public function indexAction()
{
}
}
1 change: 1 addition & 0 deletions sandbox/application/Core/View/scripts/index/index.phtml
@@ -0,0 +1 @@
WORKING
Empty file.
33 changes: 33 additions & 0 deletions sandbox/application/config.ini
@@ -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
8 changes: 8 additions & 0 deletions sandbox/public/.htaccess
@@ -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]
48 changes: 48 additions & 0 deletions sandbox/public/index.php
@@ -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();

0 comments on commit 920daeb

Please sign in to comment.