GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 19FT/NFDevelopmentMode: ZF2 development mode module

This repository was archived by the owner on Jun 4, 2020. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
DevelopmentModeController.php
DevelopmentModeController.php
 
 
LICENSE
LICENSE
 
 
Module.php
Module.php
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
development.config.php.dist
development.config.php.dist
 
 

Repository files navigation

#NFDevelopmentMode

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

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.

##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:

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

    and run composer.update.

  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:

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

    with

     // 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.

About

ZF2 development mode module

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

16 stars

Watchers

1 watching

Forks

30 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.