ZF2 Configuration


  1. Every application has one or more application configuration files.
  2. Every application consists of one or more modules .
  3. Every module has its own configuration.
  4. Together the module and application configuration files are consolidated at runtime into the final configuration.

The configuration files ending with local.php are used to specify configuration for the current machine. E.g. for 'development', 'uat', 'LIVE' etc.

E.g. If we want to configure database settings, once we enable this module, use file database.local.php.

Main Module Directory

The main configuration file for the Application module is located under module/Application/config/module.config.php

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License