2017 © Pedro Peláez
 

library nf-development-mode

ZF2 development mode module

image

19ft/nf-development-mode

ZF2 development mode module

  • Tuesday, August 26, 2014
  • by akrabat
  • Repository
  • 4 Watchers
  • 16 Stars
  • 925 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 21 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

NFDevelopmentMode

UPDATE: There is now an offical version of this module at
https://github.com/zfcampus/zf-development-mode
, (*1)

This ZF2 development mode module is an extraction of the Apigility Skeleton's Development Mode Controller to its own module for use in ZF2 applications., (*2)

Installation with Composer

  1. Add "19ft/nf-development-mode": "1.*" to the "require" section your composer.json file and run php composer.phar update.
  2. Copy development.config.dist to config/development.config.dist and edit as required. Commit this file to your VCS.
  3. Add any development modules to the "require-dev" section of your application's composer.json. e.g:, (*3)

    "zendframework/zend-developer-tools": "dev-master",
    "zendframework/zftool": "dev-master"

    and run composer.update., (*4)

  4. If you're using Zend Developer Tools, Copy ./vendor/zendframework/zend-developer-tools/config/zenddevelopertools.local.php.dist to ./config/autoload/zenddevelopertools.local.php. Change any settings in it according to your needs.
  5. Add 'NFDevelopmentMode' to the list of Modules in your config/application.config.php file.
  6. In public/index.php, replace these lines:, (*5)

    // Run the application!
    Zend\Mvc\Application::init(require 'config/application.config.php')->run();

    with, (*6)

    // Config
    $appConfig = include APPLICATION_PATH . '/config/application.config.php';
    
    if (file_exists(APPLICATION_PATH . '/config/development.config.php')) {
        $appConfig = Zend\Stdlib\ArrayUtils::merge($appConfig, include APPLICATION_PATH . '/config/development.config.php');
    }
    
    // Run the application!
    Zend\Mvc\Application::init($appConfig)->run();

To enable development mode

cd path/to/install
php public/index.php development enable

To disable development mode

cd path/to/install
php public/index.php development disable

Note: Don't run development mode on your production server., (*7)

The Versions

26/08 2014

dev-master

9999999-dev http://github.com/19ft/NFDevelopmentMode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

framework zf2

07/01 2014

1.1

1.1.0.0 http://github.com/19ft/NFDevelopmentMode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

framework zf2

22/12 2013

1.0

1.0.0.0 http://github.com/19ft/NFDevelopmentMode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

framework zf2