Using Zend_Tool On The Command Line-2

 

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

  1. 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.html

  1. 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.web

  • ZF_HOMEide

    • the directory this tool will look for a home directorythis

    • directory must existspa

    • search order:code

      • ZF_HOME environment variableorm

      • HOME environment variablehtm

      • then HOMEPATH environment variableip

  • 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

相關文章
相關標籤/搜索