. Updated Daily. Editions SDA India   SDA Indonesia
JAX Asia 2008 - Conference for Enterprise Java, SOA, Spring, Web Services, Ajax, Agile and more
BUSINESS ENTERPRISE SOLUTIONS ARCHITECTURE INFORMATION SECURITY WIRELESS & MOBILITY DATA & STORAGE DEVELOPMENT HARDWARE













News

Thursday, 10 May 2007

Multiple Entries With Zend_Config_XML

 

 

The Riff blog has an entry that shows you how to implement multiple entries with Zend_Config_XML. The author had been in need of a class to read configuration data into both the PHP-GTK OSInet back-office front end, and the back-office client UI for the Drupal 5.x offload module, and hesitated between various solutions, ranging from roll-our-own to the various frameworks out there and the existing PEAR packages.

He takes the help of the Zend Framework and tries out the following:

  • Work notes within Zend Framework (ZF) regularly allude to CLI and GTK,
  • ZF includes A tempting Zend_Config class, which seems to cover the needs in a simple fashion


However the ZF was able to carry out the functions. The Zend_Config_XML manual page is sufficient to demonstrate how to use the code, but skips an important point that configuration files frequently have to include a list of values. He tells you about the time honored practice in INI files. This practice is to number variables and read them in until failure occurs. After seeing how Zend_Config_XML parses the file, he figured that it might be useful to declare the list and use it directly. So, he gives a sample configure file for the offload Drupal module.

 

Read the Post

 
 
print save email comment

print

save

email

comment

 
 

Search SDA Asia

Free eNewsletter

SDA Asia Magazine Free Download
 
 
 
Copyright @ 2008 SDA Asia Magazine - All Right Reserved Privacy Policy | Terms of Use