<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Filip Forrez Online</title>
	<atom:link href="http://filip.forrez.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://filip.forrez.net</link>
	<description></description>
	<lastBuildDate>Tue, 13 Dec 2011 20:16:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Zend_Db_Select: Select query cannot join with another table</title>
		<link>http://filip.forrez.net/2011/03/03/zend_db_select-select-query-cannot-join-with-another-table/</link>
		<comments>http://filip.forrez.net/2011/03/03/zend_db_select-select-query-cannot-join-with-another-table/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 09:11:56 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Zend_Db_Select]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=144</guid>
		<description><![CDATA[When I executed a query created with Zend_Db_Select in a Zend_Db_Table, I got the following error message: &#8220;Select query cannot join with another table&#8221; What is happening here? A very simple select statement with a join is not allowed in Zend_Db_Select? To solve this mysterious matter, I decided to Google the error message, off course. [...]]]></description>
			<content:encoded><![CDATA[<p>When I executed a query created with Zend_Db_Select in a Zend_Db_Table, I got the following error message:</p>
<p>&#8220;<strong>Select query cannot join with another table</strong>&#8221;</p>
<p>What is happening here? A very simple select statement with a join is not allowed in Zend_Db_Select?<br />
To solve this mysterious matter, I decided to Google the error message, off course. Luckily, one of the first results I got was the Zend Framework manual, a page on <a title="Zend Manual: Zend_Db_Table" href="http://framework.zend.com/manual/en/zend.db.table.html" target="_blank">Zend_Db_Table</a>. Luckily? Not really, because the documentation only mentions &#8220;You <em>can</em> allow <strong><tt>JOIN</tt></strong> clauses on a                         select to allow multi-table lookups&#8221;. That&#8217;s great, but&#8230; HOW?</p>
<p>But as always, the documentation comes to the rescue! On the <a title="Zend Manual: Zend_Db_Select" href="http://framework.zend.com/manual/en/zend.db.select.html" target="_blank">Zend_Db_Select</a> page a comment points in the right direction. There exists an undocumented function &#8220;<strong>setIntegrityCheck(false)</strong>&#8220;. And if you see the code of Zend_Db_Table_Select, in the assemble() function, it becomes even more clear: there is indeed a parameter &#8220;$_intgrityCheck&#8221; that can ensure that selected columns are only from the primary table.</p>
<p>So I pass this function in my Zend_Db_Select statement, and now it is possible to do joins!</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F03%2F03%2Fzend_db_select-select-query-cannot-join-with-another-table%2F&amp;linkname=Zend_Db_Select%3A%20Select%20query%20cannot%20join%20with%20another%20table" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2011%2F03%2F03%2Fzend_db_select-select-query-cannot-join-with-another-table%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F03%2F03%2Fzend_db_select-select-query-cannot-join-with-another-table%2F&amp;count=none&amp;text=Zend_Db_Select%3A%20Select%20query%20cannot%20join%20with%20another%20table" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2011%2F03%2F03%2Fzend_db_select-select-query-cannot-join-with-another-table%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F03%2F03%2Fzend_db_select-select-query-cannot-join-with-another-table%2F&amp;count=none&amp;text=Zend_Db_Select%3A%20Select%20query%20cannot%20join%20with%20another%20table" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F03%2F03%2Fzend_db_select-select-query-cannot-join-with-another-table%2F&amp;linkname=Zend_Db_Select%3A%20Select%20query%20cannot%20join%20with%20another%20table" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2011%2F03%2F03%2Fzend_db_select-select-query-cannot-join-with-another-table%2F&amp;title=Zend_Db_Select%3A%20Select%20query%20cannot%20join%20with%20another%20table" id="wpa2a_2"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2011/03/03/zend_db_select-select-query-cannot-join-with-another-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>View helpers and variables not available in layout</title>
		<link>http://filip.forrez.net/2011/02/15/view-helpers-and-variables-not-available-in-layout/</link>
		<comments>http://filip.forrez.net/2011/02/15/view-helpers-and-variables-not-available-in-layout/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 14:02:58 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Zend_Layout]]></category>
		<category><![CDATA[Zend_View]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=138</guid>
		<description><![CDATA[I got a really strange problem while implementing a menu with Zend_Navigation. I added this piece of code in the Bootstrap.php: protected function _initNavigation&#40;&#41; &#123; $this-&#62;bootstrap&#40;'layout'&#41;; $layout = $this-&#62;getResource&#40;'layout'&#41;; $view = $layout-&#62;getView&#40;&#41;; $config = new Zend_Config_Ini&#40;APPLICATION_PATH . '/configs/navigation.ini'&#41;; &#160; $navigation = new Zend_Navigation&#40;$config&#41;; $view-&#62;navigation&#40;$navigation&#41;; &#125; This is fine for creating a menu or breadcrumbs, but [...]]]></description>
			<content:encoded><![CDATA[<p>I got a really strange problem while implementing a menu with Zend_Navigation. I added this piece of code in the Bootstrap.php:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000000; font-weight: bold;">function</span> _initNavigation<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">bootstrap</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'layout'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$layout</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getResource</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'layout'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$view</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$layout</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getView</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Config_Ini<span style="color: #009900;">&#40;</span>APPLICATION_PATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/configs/navigation.ini'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000088;">$navigation</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Navigation<span style="color: #009900;">&#40;</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$view</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">navigation</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$navigation</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span></pre></div></div>

<p>This is fine for creating a menu or breadcrumbs, but there is one big problem: after this code is in use, all custom variables and the View Helper Include path are not available any more in the layout phtml file.</p>
<p>For example &#8220;echo $this->name&#8221; just echoes null. Or the custom view helper &#8220;$this-&gt;myHelper()&#8221; cannot be found because the View Helper include path only contains the path to Zend View Helpers.</p>
<p>And writing the same code in the phtml file of a simple action does work!</p>
<p>So what is the relation between the code above and the problems mentioned?</p>
<p>It all starts at the first line of the function &#8220;_initNavigation()&#8221;: there is a bootstrap function for the layout. Unfortunately it is necessary to add another line to not have the problems above. It is needed to also bootstrap the view! So the code becomes:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000000; font-weight: bold;">function</span> _initNavigation<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">bootstrap</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'layout'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">bootstrap</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'view'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$layout</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getResource</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'layout'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$view</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$layout</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getView</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Config_Ini<span style="color: #009900;">&#40;</span>APPLICATION_PATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/configs/navigation.ini'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000088;">$navigation</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Navigation<span style="color: #009900;">&#40;</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$view</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">navigation</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$navigation</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span></pre></div></div>

<p>Now the layout AND the view are bootstrapped, and the custom view helpers and variables can again be used in the layout phtml file.</p>
<p>I found this interesting issue in the ZF Jira: <a href="http://framework.zend.com/issues/browse/ZF-9537">ZF-9537</a>. It has already been reported, but it is not an issue (see status). So this is supposed to be normal behaviour? Does anyone has a good explanation for this?</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F15%2Fview-helpers-and-variables-not-available-in-layout%2F&amp;linkname=View%20helpers%20and%20variables%20not%20available%20in%20layout" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F15%2Fview-helpers-and-variables-not-available-in-layout%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F15%2Fview-helpers-and-variables-not-available-in-layout%2F&amp;count=none&amp;text=View%20helpers%20and%20variables%20not%20available%20in%20layout" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F15%2Fview-helpers-and-variables-not-available-in-layout%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F15%2Fview-helpers-and-variables-not-available-in-layout%2F&amp;count=none&amp;text=View%20helpers%20and%20variables%20not%20available%20in%20layout" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F15%2Fview-helpers-and-variables-not-available-in-layout%2F&amp;linkname=View%20helpers%20and%20variables%20not%20available%20in%20layout" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F15%2Fview-helpers-and-variables-not-available-in-layout%2F&amp;title=View%20helpers%20and%20variables%20not%20available%20in%20layout" id="wpa2a_4"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2011/02/15/view-helpers-and-variables-not-available-in-layout/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zend Navigation: Breadcrumbs minimum depth</title>
		<link>http://filip.forrez.net/2011/02/14/zend-navigation-breadcrumbs-minimum-depth/</link>
		<comments>http://filip.forrez.net/2011/02/14/zend-navigation-breadcrumbs-minimum-depth/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 14:54:33 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Breadcrumbs]]></category>
		<category><![CDATA[Zend_Navigation]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=135</guid>
		<description><![CDATA[Creating breadcrumbs with Zend Framework is really easy: Create a menu structure (ini file, php array, &#8230;) add a small peace of code in the view file: &#8220;echo $this-&#62;navigation()-&#62;breadcrumbs()&#8221; open your page and you see&#8230; nothing This is what happened to me on the home page of my most recent project.  All though the ZF [...]]]></description>
			<content:encoded><![CDATA[<p>Creating breadcrumbs with Zend Framework is really easy:</p>
<ol>
<li>Create a menu structure (ini file, php array, &#8230;)</li>
<li>add a small peace of code in the view file: &#8220;echo $this-&gt;navigation()-&gt;breadcrumbs()&#8221;</li>
<li>open your page and you see&#8230; nothing</li>
</ol>
<p>This is what happened to me on the home page of my most recent project.  All though the <a title="ZF breadcrumbs view helper" href="http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.navigation.breadcrumbs" target="_blank">ZF manual</a> indicates you just have to echo the breadcrumbs, nothing appeared.</p>
<p>The problem was this: my menu started at level zero, and ZF sets the minimum level that will be displayed to one. Luckily there is the documentation, but it is really annoying that the method &#8220;setMinDepth()&#8221; is not in the <a title="ZF breadcrumbs view helper API" href="http://framework.zend.com/apidoc/core/Zend_View/Helper/Zend_View_Helper_Navigation_Breadcrumbs.html" target="_blank">API</a>, so it took me much longer to find out this method existed.</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F14%2Fzend-navigation-breadcrumbs-minimum-depth%2F&amp;linkname=Zend%20Navigation%3A%20Breadcrumbs%20minimum%20depth" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F14%2Fzend-navigation-breadcrumbs-minimum-depth%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F14%2Fzend-navigation-breadcrumbs-minimum-depth%2F&amp;count=none&amp;text=Zend%20Navigation%3A%20Breadcrumbs%20minimum%20depth" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F14%2Fzend-navigation-breadcrumbs-minimum-depth%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F14%2Fzend-navigation-breadcrumbs-minimum-depth%2F&amp;count=none&amp;text=Zend%20Navigation%3A%20Breadcrumbs%20minimum%20depth" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F14%2Fzend-navigation-breadcrumbs-minimum-depth%2F&amp;linkname=Zend%20Navigation%3A%20Breadcrumbs%20minimum%20depth" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2011%2F02%2F14%2Fzend-navigation-breadcrumbs-minimum-depth%2F&amp;title=Zend%20Navigation%3A%20Breadcrumbs%20minimum%20depth" id="wpa2a_6"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2011/02/14/zend-navigation-breadcrumbs-minimum-depth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Url view helper</title>
		<link>http://filip.forrez.net/2010/12/02/url-view-helper/</link>
		<comments>http://filip.forrez.net/2010/12/02/url-view-helper/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 10:46:26 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[view helper]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=114</guid>
		<description><![CDATA[When creating a link in a view file to another page of your application, Zend Framework provides a view helper that is very handy: Zend_View_Helper_Url. echo $this-&#62;url&#40;array&#40; 'module' =&#62; 'abc', 'controller' =&#62; 'def', 'action' =&#62; 'ghi', 'param1' =&#62; '1', 'param2' =&#62; '2' &#41;; // output: &#34;/abc/def/ghi/param1/1/param2/2&#34; If you don&#8217;t provide the module, controller or action, [...]]]></description>
			<content:encoded><![CDATA[<p>When creating a link in a view file to another page of your application, Zend Framework provides a view helper that is very handy: Zend_View_Helper_Url.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">url</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'module'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'abc'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'controller'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'def'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'action'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ghi'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'param1'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'1'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'param2'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'2'</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// output: &quot;/abc/def/ghi/param1/1/param2/2&quot;</span></pre></div></div>

<p>If you don&#8217;t provide the module, controller or action, the current module, controller or action will be used as default values.</p>
<p>I think this is a very easy way to create links inside an application, without retyping every time your controllers or actions.</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F12%2F02%2Furl-view-helper%2F&amp;linkname=Url%20view%20helper" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F12%2F02%2Furl-view-helper%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F12%2F02%2Furl-view-helper%2F&amp;count=none&amp;text=Url%20view%20helper" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F12%2F02%2Furl-view-helper%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F12%2F02%2Furl-view-helper%2F&amp;count=none&amp;text=Url%20view%20helper" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F12%2F02%2Furl-view-helper%2F&amp;linkname=Url%20view%20helper" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F12%2F02%2Furl-view-helper%2F&amp;title=Url%20view%20helper" id="wpa2a_8"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2010/12/02/url-view-helper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Benelux Conference 2011, Antwerp</title>
		<link>http://filip.forrez.net/2010/11/30/php-benelux-conference-2011-antwerp/</link>
		<comments>http://filip.forrez.net/2010/11/30/php-benelux-conference-2011-antwerp/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 12:38:02 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpbnl11]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=107</guid>
		<description><![CDATA[Thanks to Ausy/Dataflow I will be present on Belgium&#8217;s most important PHP event of the year. The 2010 event was great, and I was very happy I could be there. The schedule for this year looks very interesting too: tutorial on quality assurance and unit testing, RESTful web services, Doctrine, and ZF2.0. Those are already [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a title="Ausy/Dataflow" href="http://www.ausy.be" target="_blank">Ausy/Dataflow</a> I will be present on Belgium&#8217;s most important PHP event of the year.</p>
<p>The 2010 event was great, and I was very happy I could be there. The schedule for this year looks very interesting too: tutorial on quality assurance and unit testing, RESTful web services, Doctrine, and ZF2.0. Those are already some of the talks I will attend.</p>
<p>All information can be found at <a title="phpbnl11" href="http://conference.phpbenelux.eu/" target="_blank">conference.phpbenelux.eu</a></p>
<p>Already many thanks to the organizing crew! Hope to see you there!</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fphp-benelux-conference-2011-antwerp%2F&amp;linkname=PHP%20Benelux%20Conference%202011%2C%20Antwerp" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fphp-benelux-conference-2011-antwerp%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fphp-benelux-conference-2011-antwerp%2F&amp;count=none&amp;text=PHP%20Benelux%20Conference%202011%2C%20Antwerp" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fphp-benelux-conference-2011-antwerp%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fphp-benelux-conference-2011-antwerp%2F&amp;count=none&amp;text=PHP%20Benelux%20Conference%202011%2C%20Antwerp" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fphp-benelux-conference-2011-antwerp%2F&amp;linkname=PHP%20Benelux%20Conference%202011%2C%20Antwerp" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fphp-benelux-conference-2011-antwerp%2F&amp;title=PHP%20Benelux%20Conference%202011%2C%20Antwerp" id="wpa2a_10"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2010/11/30/php-benelux-conference-2011-antwerp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E-volutions</title>
		<link>http://filip.forrez.net/2010/11/30/e-volutions/</link>
		<comments>http://filip.forrez.net/2010/11/30/e-volutions/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 12:20:51 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[e-volutions]]></category>
		<category><![CDATA[webshop]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=102</guid>
		<description><![CDATA[My colleague Ward Loockx is starting a new business &#8220;E-volutions&#8221; in webhosting, domain names, and the most important part: free webshop hosting. Go find out more about his products on www.e-volutions.be If you are interested in the free webshop hosting, subscribe for more information on www.e-volutions.be/gratis-webshop]]></description>
			<content:encoded><![CDATA[<p>My colleague Ward Loockx is starting a new business &#8220;E-volutions&#8221; in webhosting, domain names, and the most important part: free webshop hosting.</p>
<p>Go find out more about his products on <a title="E-volutions" href="http://www.e-volutions.be" target="_blank">www.e-volutions.be</a></p>
<p>If you are interested in the free webshop hosting, subscribe for more information on <a title="Gratis Webshop" href="http://www.e-volutions.be/gratis-webshop" target="_blank">www.e-volutions.be/gratis-webshop</a><a title="TomatoCart Hosting" href="http://www.tomatocarthosting.com"></a></p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fe-volutions%2F&amp;linkname=E-volutions" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fe-volutions%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fe-volutions%2F&amp;count=none&amp;text=E-volutions" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fe-volutions%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fe-volutions%2F&amp;count=none&amp;text=E-volutions" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fe-volutions%2F&amp;linkname=E-volutions" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F11%2F30%2Fe-volutions%2F&amp;title=E-volutions" id="wpa2a_12"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2010/11/30/e-volutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework certified!</title>
		<link>http://filip.forrez.net/2010/08/17/zend-framework-certified/</link>
		<comments>http://filip.forrez.net/2010/08/17/zend-framework-certified/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 12:47:36 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[certification]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=94</guid>
		<description><![CDATA[Today I passed the Zend Framework certification. From now on I can call myself Zend Framework Certified Engineer. I followed the Zend Certification training at Ausy/Dataflow. Gauthier Delamarre is an excellent teacher, and he helped me very good to prepare for the examination. Though it is my opinion that with only the training you cannot [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://filip.forrez.net/wp-content/uploads/2010/08/zf_zce_logo.gif"><img class="alignleft size-full wp-image-95" title="Zend Framework Certified Engineer" src="http://filip.forrez.net/wp-content/uploads/2010/08/zf_zce_logo.gif" alt="Zend Framework Certified Engineer Logo" width="73" height="68" /></a>Today I passed the Zend Framework certification. From now on I can call myself Zend Framework Certified Engineer.</p>
<p>I followed the Zend Certification training at <a title="Ausy website" href="http://www.ausy.be" target="_blank">Ausy/Dataflow</a>. <a title="Blog Gauthier Delamarre" href="http://www.freeblogware.org/" target="_blank">Gauthier Delamarre</a> is an excellent teacher, and he helped me very good to prepare for the examination. Though it is my opinion that with only the training you cannot pass. It requires a lot of experience with the ZF, and you have to study <a title="ZF online reference guide" href="http://framework.zend.com/manual/en/" target="_blank">the online reference guide</a> really good.</p>
<p>Some tips for anybody who wants to do the certification:</p>
<ul>
<li>know the output of every function,</li>
<li>know which and how many parameters every function requires, but also know the optional parameters,</li>
<li>know what happens if something goes wrong (does ZF throw an Exception or do you get a Fatal Error, a warning,&#8230;),</li>
<li>know the configuration settings (for example Frontend and Backend Caching have a lot of settings),</li>
<li>study the reference guide in depth!</li>
</ul>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F17%2Fzend-framework-certified%2F&amp;linkname=Zend%20Framework%20certified%21" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F17%2Fzend-framework-certified%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F17%2Fzend-framework-certified%2F&amp;count=none&amp;text=Zend%20Framework%20certified%21" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F17%2Fzend-framework-certified%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F17%2Fzend-framework-certified%2F&amp;count=none&amp;text=Zend%20Framework%20certified%21" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F17%2Fzend-framework-certified%2F&amp;linkname=Zend%20Framework%20certified%21" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F17%2Fzend-framework-certified%2F&amp;title=Zend%20Framework%20certified%21" id="wpa2a_14"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2010/08/17/zend-framework-certified/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Be faster in Eclipse PDT</title>
		<link>http://filip.forrez.net/2010/08/06/be-faster-in-eclipse-pdt/</link>
		<comments>http://filip.forrez.net/2010/08/06/be-faster-in-eclipse-pdt/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 11:27:04 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=87</guid>
		<description><![CDATA[A tip for all PHP developers using Eclipse PDT: if you want to type a class name, for example &#8220;Zend_Controller_Request_Http&#8221;, you can just type &#8220;ZCRH&#8220;, and the Eclipse code assist will suggest &#8220;Zend_Controller_Request_Http&#8221;. This works also in Zend Studio for Eclipse.]]></description>
			<content:encoded><![CDATA[<p>A tip for all PHP developers using Eclipse PDT:<br />
if you want to type a class name, for example &#8220;<strong>Z</strong>end_<strong>C</strong>ontroller_<strong>R</strong>equest_<strong>H</strong>ttp&#8221;, you can just type &#8220;<strong>ZCRH</strong>&#8220;, and the Eclipse code assist will suggest &#8220;Zend_Controller_Request_Http&#8221;.</p>
<p>This works also in Zend Studio for Eclipse.</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F06%2Fbe-faster-in-eclipse-pdt%2F&amp;linkname=Be%20faster%20in%20Eclipse%20PDT" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F06%2Fbe-faster-in-eclipse-pdt%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F06%2Fbe-faster-in-eclipse-pdt%2F&amp;count=none&amp;text=Be%20faster%20in%20Eclipse%20PDT" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F06%2Fbe-faster-in-eclipse-pdt%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F06%2Fbe-faster-in-eclipse-pdt%2F&amp;count=none&amp;text=Be%20faster%20in%20Eclipse%20PDT" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F06%2Fbe-faster-in-eclipse-pdt%2F&amp;linkname=Be%20faster%20in%20Eclipse%20PDT" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F08%2F06%2Fbe-faster-in-eclipse-pdt%2F&amp;title=Be%20faster%20in%20Eclipse%20PDT" id="wpa2a_16"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2010/08/06/be-faster-in-eclipse-pdt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>var_dump() in Firebug</title>
		<link>http://filip.forrez.net/2010/07/29/var_dump-in-firebug/</link>
		<comments>http://filip.forrez.net/2010/07/29/var_dump-in-firebug/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 09:28:19 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Zend_Log]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=82</guid>
		<description><![CDATA[In my previous post I talked about query profiling in Firebug with FirePHP. Today I will talk about another feature from the Zend Framework and FirePHP: logging. Again, it&#8217;s very simple: create a new Zend_Log add the Zend_Log_Writer_Firebug to it $log = new Zend_Log&#40;&#41;; $log-&#62;addWriter&#40;new Zend_Log_Writer_Firebug&#40;&#41;&#41;; $log-&#62;debug&#40;$something&#41;; This will behave like var_dump(), with these differences/improvements: [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post I talked about query profiling in Firebug with FirePHP. Today I will talk about another feature from the Zend Framework and FirePHP: logging.</p>
<p>Again, it&#8217;s very simple:</p>
<ul>
<li>create a new Zend_Log</li>
<li>add the Zend_Log_Writer_Firebug to it</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$log</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Log<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$log</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addWriter</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> Zend_Log_Writer_Firebug<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$log</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">debug</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$something</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This will behave like var_dump(), with these differences/improvements:</p>
<ul>
<li>the output is displayed in Firebug</li>
<li>the HTML output doesn&#8217;t change</li>
<li>also for Ajax calls; no var_dump() info visible in the output from the Ajax call</li>
<li>the output has a nice layout</li>
</ul>
<p><em>Remark: to use this, you need Firebug and FirePHP</em></p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F29%2Fvar_dump-in-firebug%2F&amp;linkname=var_dump%28%29%20in%20Firebug" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F29%2Fvar_dump-in-firebug%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F29%2Fvar_dump-in-firebug%2F&amp;count=none&amp;text=var_dump%28%29%20in%20Firebug" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F29%2Fvar_dump-in-firebug%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F29%2Fvar_dump-in-firebug%2F&amp;count=none&amp;text=var_dump%28%29%20in%20Firebug" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F29%2Fvar_dump-in-firebug%2F&amp;linkname=var_dump%28%29%20in%20Firebug" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F29%2Fvar_dump-in-firebug%2F&amp;title=var_dump%28%29%20in%20Firebug" id="wpa2a_18"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2010/07/29/var_dump-in-firebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick query checks with Firebug</title>
		<link>http://filip.forrez.net/2010/07/23/quick-query-checks-with-firebug/</link>
		<comments>http://filip.forrez.net/2010/07/23/quick-query-checks-with-firebug/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 09:08:01 +0000</pubDate>
		<dc:creator>Filip</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Firebug]]></category>

		<guid isPermaLink="false">http://filip.forrez.net/?p=76</guid>
		<description><![CDATA[Firebug gets better and better! One of my last discoveries is Zend_Db_Profiler_Firebug. With this great feature of the Zend Framework it is possible to check queries in Firebug. Step 1: install Firebug + FirePHP and activate the Console and Net tab Step 2: activate Zend_Db_Profiler_Firebug in the application: resources.db.params.profiler.class = Zend_Db_Profiler_Firebug resources.db.params.profiler.enabled = true For [...]]]></description>
			<content:encoded><![CDATA[<p>Firebug gets better and better!<br />
One of my last discoveries is Zend_Db_Profiler_Firebug. With this great feature of the Zend Framework it is possible to check queries in Firebug.<br />
Step 1: install Firebug + FirePHP and activate the Console and Net tab<br />
Step 2: activate Zend_Db_Profiler_Firebug in the application:<br />
<code><br />
resources.db.params.profiler.class = Zend_Db_Profiler_Firebug<br />
resources.db.params.profiler.enabled = true<br />
</code><br />
For example enable it in development environment, and disable it in production.<br />
Step 3: refresh your application, and see the queries appear in Firebug: you see the duration of all queries, and for each query individually, all parameters passed to the query and the total number of queries.</p>
<p>If you don&#8217;t want to use MySQL Proxy, this is a good alternative to check queries!</p>
<p>I have no hard data to prove it, but I don&#8217;t have the impression that it slows down my applications.<br />
Does anybody know more about the performance of Profiler_Firebug?</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F23%2Fquick-query-checks-with-firebug%2F&amp;linkname=Quick%20query%20checks%20with%20Firebug" title="Facebook" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><!--[if IE]><iframe frameborder="0" allowTransparency="true" class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F23%2Fquick-query-checks-with-firebug%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F23%2Fquick-query-checks-with-firebug%2F&amp;count=none&amp;text=Quick%20query%20checks%20with%20Firebug" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><![endif]--><!--[if !IE]><!--><iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F23%2Fquick-query-checks-with-firebug%2F&amp;counturl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F23%2Fquick-query-checks-with-firebug%2F&amp;count=none&amp;text=Quick%20query%20checks%20with%20Firebug" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe><!--<![endif]--><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F23%2Fquick-query-checks-with-firebug%2F&amp;linkname=Quick%20query%20checks%20with%20Firebug" title="Digg" rel="nofollow" target="_blank"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ffilip.forrez.net%2F2010%2F07%2F23%2Fquick-query-checks-with-firebug%2F&amp;title=Quick%20query%20checks%20with%20Firebug" id="wpa2a_20"><img src="http://filip.forrez.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://filip.forrez.net/2010/07/23/quick-query-checks-with-firebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

