Enabling Error Displays In Zend Framework 2
One of the things that I loved most about Zend Framework 1 is that you could run two servers with almost identical configs and easily switch Zend from production to development and have it use completely different configs just by changing one setting. In Zend Framework 2 they've switch away from this method and have added a local.php file option so it works the same way but critical information like account passwords aren't included in Source Control.
One of the things I love most is that you could change PHP settings like enabling display_errors
. Internally, Zend Framework 2 doesn't support this but because they've switched to using executed PHP files for settings that are basically executed you can just use the ini_set function to do the same thing as long as the file returns the array:
Scott Keck-Warren
Scott is the Director of Technology at WeCare Connect where he strives to provide solutions for his customers needs. He's the father of two and can be found most weekends working on projects around the house with his loving partner.
Top Posts
- Working With Soft Deletes in Laravel (By Example)
- Fixing CMake was unable to find a build program corresponding to "Unix Makefiles"
- Upgrading to Laravel 8.x
- Get The Count of the Number of Users in an AD Group
- Multiple Vagrant VMs in One Vagrantfile
- Fixing the "this is larger than GitHub's recommended maximum file size of 50.00 MB" error
- Changing the Directory Vagrant Stores the VMs In
- Accepting Android SDK Licenses From The OSX Command Line
- Fixing the 'Target class [config] does not exist' Error
- Using Rectangle to Manage MacOS Windows