From 2b709d25e837588f43382f8524ec460af1c0b127 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Wed, 15 May 2013 19:37:56 +0100 Subject: [PATCH] Fix --- bootstrap.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index 1fcf3598..00901c45 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -23,7 +23,11 @@ spl_autoload_register(function ($class) define('APPLICATION_PATH', dirname(__FILE__) . '/'); require_once('vendor/autoload.php'); -require('config.php'); + +if(file_exists(APPLICATION_PATH . 'config.php')) +{ + require('config.php'); +} b8\Registry::getInstance()->set('app_namespace', 'PHPCI'); b8\Registry::getInstance()->set('DefaultController', 'Index');