Zend framework 06 - zend config, pdf, i18n, l10n, sessions

download Zend framework 06 - zend config, pdf, i18n, l10n, sessions

If you can't read please download the document

  • date post

    17-May-2015
  • Category

    Technology

  • view

    2.740
  • download

    0

Embed Size (px)

description

Zend_Config simplifies the access to, the use of, and writing of, configuration data within applications. The configuration data may come from a variety of media supporting hierarchical data storage. Adapters for Arrays, ini and XML files are provided.

Transcript of Zend framework 06 - zend config, pdf, i18n, l10n, sessions

  • 1. Zend Framework 6. Zend_Config, PDF, i18n, l10n, Sessions Tricode Professional Services www.tricode.nl Date: 27-03-2009 Authors:Marcel Blok Patrick van Dissel Sander van Beek

2. Zend_Config

  • Zend_Config simplifies the access to, the use of, and writing of, configuration data within applications.
  • The configuration data may come from a variety of media supporting hierarchical data storage.
  • Adapters for Arrays, ini and XML files are provided.

3. Zend_Config

  • Zend_Config creates an object-oriented wrapper around the configuration data.
  • < production >
  • false
  • false
  • production >
  • < stagingextends=" production ">
  • staging >
  • < developmentextends=" staging ">
  • development >

7. Zend_Config

  • Three ways to define XML config nodes:
  • false
  • false

8. Zend_Config

  • Return type
  • Configuration data read into Zend_Config are always returned
  • asstrings . Conversion of data from strings to other types is left
  • to developers to suit their particular needs.
  • Write configuration data to file(ZF v1.7+)
  • For each default Zend_Config adapter is a writer provided:
  • Zend_Config_Writer_Xml
  • Zend_Config_Writer_Ini
  • Zend_Config_Writer_Array
  • $writer = new Zend_Config_Writer_Xml();
  • $writer ->write( config.xml , $config );

9. Zend_Config

  • Read-only
  • Zend_Config objects are read-only by default. The only way to make Zend_Config objects writable, is overriding this functionality in the constructor.