Comments (4)
Its code has been moved in the following file:
https://github.com/ivantcholakov/starter-public-edition-4/blob/master/platform/bootstrap/bootstrap.php
and it is highly modified. I don't see a reason it to be touched.
There is a configuration file environment.php that is called very early by the bootstrap file and there I put some common PHP settings so far.
https://github.com/ivantcholakov/starter-public-edition-4/blob/master/platform/common/config/environment.php
Perhaps it is what you need.
from starter-public-edition-4.
Im rather looking for something like this:
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
*/
switch (ENVIRONMENT)
{
case 'development':
error_reporting(-1);
ini_set('display_errors', 1);
break;
case 'testing':
case 'production':
ini_set('display_errors', 0);
if (version_compare(PHP_VERSION, '5.3', '>='))
{
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
}
else
{
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
}
break;
default:
header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
echo 'The application environment is not set correctly.';
exit(1); // EXIT_ERROR
}
from starter-public-edition-4.
https://github.com/ivantcholakov/starter-public-edition-4/blob/master/platform/create.php
from starter-public-edition-4.
yea, its exactly that was im looking for. Thank you very much. :)
from starter-public-edition-4.
Related Issues (20)
- PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/msql.so HOT 4
- Plans for 4.4 HOT 8
- Where is "Support for database stored settings (Settings library)." database? HOT 2
- $this->uri->segments() should not return the language segment. HOT 2
- db question HOT 7
- email config HOT 5
- Deleting Cache Dir HOT 5
- different language for applications HOT 3
- Read the language settings from the database HOT 3
- multiple applications HOT 2
- Notes: Advanced CRUD using DataTables, a visual sample
- Email templates and global XSS filtering HOT 1
- Cache Issue HOT 4
- Sub-dropdown HOT 3
- Error while setting setting's key & value HOT 6
- Install using composer HOT 2
- composer packages explication / question HOT 2
- Screenshots HOT 25
- Datatable HOT 1
- Starter Public Edition 5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter-public-edition-4.