<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Kanian77's Weblog</title>
	<atom:link href="http://kanian77.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://kanian77.wordpress.com</link>
	<description>MVC,PHP, and some more</description>
	<lastBuildDate>Wed, 03 Sep 2008 23:34:44 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Very Brief History Of MVC by Kanian77&#8217;s Weblog</title>
		<link>http://kanian77.wordpress.com/2008/09/03/very-brief-history-of-mvc/#comment-11</link>
		<dc:creator>Kanian77&#8217;s Weblog</dc:creator>
		<pubDate>Wed, 03 Sep 2008 23:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://kanian77.wordpress.com/?p=13#comment-11</guid>
		<description>[...] Kanian77&#8217;s Weblog MVC,PHP, and some more      &#171; Very Brief History Of&#160;MVC [...]</description>
		<content:encoded><![CDATA[<p>[...] Kanian77&#8217;s Weblog MVC,PHP, and some more      &laquo; Very Brief History Of&nbsp;MVC [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using ZEND_Config Part 2 by kanian77</title>
		<link>http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-10</link>
		<dc:creator>kanian77</dc:creator>
		<pubDate>Wed, 03 Sep 2008 22:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-10</guid>
		<description>Hi pbijl, The thing was for me to use variables i need in my .ini config file. A problem that made sens at the time while using Zend_Config. I haven&#039;t followed the recent evolutions of the Zend Framework so I don&#039;t know if the issue as any relevance anymore.
Also, now i use symfony, as i have less work to put into thinking the config. It&#039;s just more straightforward for me.  
And u are right the solution was kind of convoluted, to say the least :-)
With symfony the yml config is turned into an associative array. U do not access that array directly though, u use a method of the sfConfig object. For example:
the following config file app.yml:

all:
 pager:
  news_max: 100
 tag:
  cloud_max: 20

will be transformed into a config_app.yml.php and saved in the cache:
 &#039;/web&#039;,
  &#039;app_search_body_weight&#039; =&gt; 1,
  &#039;app_search_title_weight&#039; =&gt; 2,
  &#039;app_search_tag_weight&#039; =&gt; 3,
  &#039;app_search_results_max&#039; =&gt; 3,
  &#039;app_users_photo_thumbnails_dir_name&#039; =&gt; &#039;users_photo_thumbnails&#039;,
  &#039;app_users_photo_thumbnails_prefix&#039; =&gt; &#039;thumb_&#039;,
  &#039;app_pager_news_max&#039; =&gt; 100,
  &#039;app_tag_cloud_max&#039; =&gt; 20,
));

You can then access a config value  where u need it using  :

$max = ($paramsArray[&#039;max&#039;]) ? $paramsArray[&#039;max&#039;] : sfConfig::get(&#039;app_pager_news_max&#039;);

Then again if u are not using a framework (or using one that doesn&#039;t give support for config management) I suppose using an associative array, as u suggest , would be a good solution.
Do u use any php framework at the time?</description>
		<content:encoded><![CDATA[<p>Hi pbijl, The thing was for me to use variables i need in my .ini config file. A problem that made sens at the time while using Zend_Config. I haven&#8217;t followed the recent evolutions of the Zend Framework so I don&#8217;t know if the issue as any relevance anymore.<br />
Also, now i use symfony, as i have less work to put into thinking the config. It&#8217;s just more straightforward for me.<br />
And u are right the solution was kind of convoluted, to say the least <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
With symfony the yml config is turned into an associative array. U do not access that array directly though, u use a method of the sfConfig object. For example:<br />
the following config file app.yml:</p>
<p>all:<br />
 pager:<br />
  news_max: 100<br />
 tag:<br />
  cloud_max: 20</p>
<p>will be transformed into a config_app.yml.php and saved in the cache:<br />
 &#8216;/web&#8217;,<br />
  &#8216;app_search_body_weight&#8217; =&gt; 1,<br />
  &#8216;app_search_title_weight&#8217; =&gt; 2,<br />
  &#8216;app_search_tag_weight&#8217; =&gt; 3,<br />
  &#8216;app_search_results_max&#8217; =&gt; 3,<br />
  &#8216;app_users_photo_thumbnails_dir_name&#8217; =&gt; &#8216;users_photo_thumbnails&#8217;,<br />
  &#8216;app_users_photo_thumbnails_prefix&#8217; =&gt; &#8216;thumb_&#8217;,<br />
  &#8216;app_pager_news_max&#8217; =&gt; 100,<br />
  &#8216;app_tag_cloud_max&#8217; =&gt; 20,<br />
));</p>
<p>You can then access a config value  where u need it using  :</p>
<p>$max = ($paramsArray['max']) ? $paramsArray['max'] : sfConfig::get(&#8216;app_pager_news_max&#8217;);</p>
<p>Then again if u are not using a framework (or using one that doesn&#8217;t give support for config management) I suppose using an associative array, as u suggest , would be a good solution.<br />
Do u use any php framework at the time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using ZEND_Config Part 2 by David Chandra</title>
		<link>http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-9</link>
		<dc:creator>David Chandra</dc:creator>
		<pubDate>Fri, 29 Aug 2008 06:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-9</guid>
		<description>If you would like to save have the config changed online, you need to save it back to file I guess....</description>
		<content:encoded><![CDATA[<p>If you would like to save have the config changed online, you need to save it back to file I guess&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using ZEND_Config Part 2 by pbijl</title>
		<link>http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-8</link>
		<dc:creator>pbijl</dc:creator>
		<pubDate>Mon, 19 May 2008 09:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-8</guid>
		<description>so why are you using .ini? why not swap to normal php config array and solve all ur problems and workarounds?</description>
		<content:encoded><![CDATA[<p>so why are you using .ini? why not swap to normal php config array and solve all ur problems and workarounds?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using ZEND_Config Part 2 by kanian77</title>
		<link>http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-7</link>
		<dc:creator>kanian77</dc:creator>
		<pubDate>Sat, 08 Mar 2008 10:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-7</guid>
		<description>Hi Riki,
I haven&#039;t tried to save the config back to the file. 
Do you have a special reason to do so?</description>
		<content:encoded><![CDATA[<p>Hi Riki,<br />
I haven&#8217;t tried to save the config back to the file.<br />
Do you have a special reason to do so?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using ZEND_Config Part 2 by Riki Risnandar</title>
		<link>http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-5</link>
		<dc:creator>Riki Risnandar</dc:creator>
		<pubDate>Sun, 24 Feb 2008 17:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-5</guid>
		<description>can the zend_ini class save the configuration back to the file ?</description>
		<content:encoded><![CDATA[<p>can the zend_ini class save the configuration back to the file ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using ZEND_Config Part 2 by Using Zend_Config &#171; Kanian77&#8217;s Weblog</title>
		<link>http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-2</link>
		<dc:creator>Using Zend_Config &#171; Kanian77&#8217;s Weblog</dc:creator>
		<pubDate>Tue, 06 Nov 2007 10:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://kanian77.wordpress.com/2007/11/06/using-config-part-2/#comment-2</guid>
		<description>[...] I realise that by using my own object I lose the benefit of all the convenient methods defined in Zend_Conf_Ini, but for such a simple job, I might not feel the difference. Yet I am thinking about extending Zend_Conf_Ini with the method discussed above. I might be worth it. Find out more on the subject here: Using ZEND_Config Part 2 [...]</description>
		<content:encoded><![CDATA[<p>[...] I realise that by using my own object I lose the benefit of all the convenient methods defined in Zend_Conf_Ini, but for such a simple job, I might not feel the difference. Yet I am thinking about extending Zend_Conf_Ini with the method discussed above. I might be worth it. Find out more on the subject here: Using ZEND_Config Part 2 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
