zend / zend-studio-development-mode
Zend Framework 2 module that helps the Zend Framework 2 application to be developed with Zend Studio
Installs: 108 690
Dependents: 3
Suggesters: 0
Security: 0
Stars: 3
Watchers: 7
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.23
- zendframework/zend-eventmanager: ^2.3 || ^3.0
- zendframework/zend-http: ^2.3
- zendframework/zend-modulemanager: ^2.3
- zendframework/zend-mvc: ^2.3 || ^3.0
This package is auto-updated.
Last update: 2024-11-06 23:47:29 UTC
README
Zend Framework module that helps developing Zend Framework applications with Zend Studio.
Introduction
This module adds the following configuration to the Zend Framework application:
- Adds a
Cache-Control: no-cache
header to the response object to avoid caching in Internet Explorer. - Changes the
Origin: file://
header in the request object sent by Android 4.x devices toOrigin: file:///
to avoid failure when using the ZfrCors module.
NOTE
DO NOT enable this module in production systems.
Installation
Run the following composer
command:
$ composer require --dev "zend/zend-studio-development-mode:^1.0"
Alternately, manually add the following to your composer.json
, in the require
section:
"require-dev": { "zend/zend-studio-development-mode": "^1.0" }
And then run composer update
to ensure the module is installed.
Finally, add the module name to your project's config/development.config.php
under the modules
key:
return array( /* ... */ 'modules' => array( /* ... */ 'ZendStudioDevelopmentMode', ), /* ... */ );
Typically, this module should be used along with
zf-development-mode in order to conditionally
enable the module in your application. When doing so, you will add the module to your project's
config/development.config.php.dist
file instead of the config/application.config.php
file, and
enable it via php public/index.php development enable
.