Skip to end of metadata
Go to start of metadata

<p>This page contains ideas on possible items that could go into Zend_Config for Zend Framework v 2.0.</p>

<h5>Variable substitution</h5>
<p>Allow placeholders in values that resolve to the value of another key.</p>
<ac:macro ac:name="code"><ac:plain-text-body><![CDATA[
path = "/var/log"
file = "

Unknown macro: {log.path}


<p>is the same as:</p>
<ac:macro ac:name="code"><ac:plain-text-body><![CDATA[
path = "/var/log"
file = "/var/log/debug.log"

<p>Potential issue: speed as we'll have to go though entire config object after loading to do substitution.</p>

<h5>Allow Zend_Config to cache its data</h5>
<p>See <a href="">ZF-4585</a><br />
Basic idea is:</p>
<p>As performance is a critical point, I think Zend_Config should be given some kind of setCache(Zend_Cache_Core $cache) method to cache its data (or to cache itself, why not ?).<br />
This would prevent opening and parsing the backend (xml or ini) file each time we create the Zend_Config instance.</p></blockquote>

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jun 09, 2009

    <p>Please fix this one: <a class="external-link" href=""></a></p>

    <p>Since zf1.8 we had to switch from xml config files to ini files. we like config files cause you can validate xml files with xsd, we use xml for translations, routes and config files</p>