PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Environment Customization

The Storage Directory

The storage directory is important so that providers may have a place to find custom user generated logic that might change the way they behave. One example can be found below is the placement of a custom project profile file.

zf --setup storage-directory

The Configuration File

This will create the proper zf.ini file. This should be run after zf --setup storage-directory. If it is not, it will be located inside the users home directory. If it is, it will be located inside the users storage directory.

zf --setup config-file

Environment Locations

These should be set if you wish to override the default places where zf will attempt to read their values.

  • ZF_HOME

    • the directory this tool will look for a home directory

    • directory must exist

    • search order:

      • ZF_HOME environment variable

      • HOME environment variable

      • then HOMEPATH environment variable

  • ZF_STORAGE_DIRECTORY

    • where this tool will look for a storage directory

    • directory must exist

    • search order:

      • ZF_STORAGE_DIRECTORY environment variable

      • $homeDirectory/.zf/ directory

  • ZF_CONFIG_FILE

    • where this tool will look for a configuration file

    • search order:

      • ZF_CONFIG_FILE environment variable

      • $homeDirectory/.zf.ini file if it exists

      • $storageDirectory/zf.ini file if it exists

  • ZEND_TOOL_INCLUDE_PATH

    • set the include_path for this tool to use this value

    • original behavior:

      • use PHP's include_path to find ZF

      • use the ZEND_TOOL_INCLUDE_PATH environment variable

      • use the path ../library (relative to zf.php) to find ZF

  • ZF_TOOL_INCLUDE_PATH_PREPEND

    • prepend the current php.ini include_path with this value

Zend Framework