<?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/"
		>
<channel>
	<title>Comments on: Zend Framework tips and tricks</title>
	<atom:link href="http://dev.juokaz.com/php/zend-framework-tips-and-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks</link>
	<description>Random ideas, scripts and facts</description>
	<lastBuildDate>Mon, 29 Mar 2010 18:47:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zend Framework News &#187; Blog Archive &#187; Zend Framework Tipps und Tricks</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-9670</link>
		<dc:creator>Zend Framework News &#187; Blog Archive &#187; Zend Framework Tipps und Tricks</dc:creator>
		<pubDate>Sat, 13 Mar 2010 14:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-9670</guid>
		<description>[...] http://dev.juokaz.com/php/zend-framework-tips-and-tricks [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://dev.juokaz.com/php/zend-framework-tips-and-tricks" rel="nofollow">http://dev.juokaz.com/php/zend-framework-tips-and-tricks</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-9356</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Tue, 02 Mar 2010 13:25:57 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-9356</guid>
		<description>Great work!

It would be nice, if Zend could provide us with more of those hints. Less people would use the framework in a wrong way without knowing about it, I think.

Without these little information it&#039;s quite easy to do something wrong (aside from general OO purposes).</description>
		<content:encoded><![CDATA[<p>Great work!</p>
<p>It would be nice, if Zend could provide us with more of those hints. Less people would use the framework in a wrong way without knowing about it, I think.</p>
<p>Without these little information it&#8217;s quite easy to do something wrong (aside from general OO purposes).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHPGangsta</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-9062</link>
		<dc:creator>PHPGangsta</dc:creator>
		<pubDate>Thu, 18 Feb 2010 16:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-9062</guid>
		<description>It&#039;s good that he repeated what you already wrote. 

Perhaps you should mark your WRONG code as being WRONG, otherwise people copy&amp;paste the WRONG examples without reading the complete article.</description>
		<content:encoded><![CDATA[<p>It&#8217;s good that he repeated what you already wrote. </p>
<p>Perhaps you should mark your WRONG code as being WRONG, otherwise people copy&amp;paste the WRONG examples without reading the complete article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-9060</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Thu, 18 Feb 2010 15:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-9060</guid>
		<description>@Juokaz Damn, you got me there, I didn&#039;t read it :)

Now i see. Interesting approach.

Well models can care about forms (http://weierophinney.net/matthew/archives/200-Using-Zend_Form-in-Your-Models.html) in some cases that can have sense, for filtering, for validation, I like to do it explicitly in controller. But sometimes it&#039;s handy to pass entire form (ex search form) and get values with $form-&gt;getValue(&#039;q&#039;) rather then $param[&#039;q&#039;] if you pass values.

When we are there, i&#039;m strugling to extend Zend_Db_Table_Row_Abstract right way, maybe you have some suggestions, please take a look at http://n4.nabble.com/Extending-Zend-Db-Table-Row-Abstract-td1559336.html#a1559336.</description>
		<content:encoded><![CDATA[<p>@Juokaz Damn, you got me there, I didn&#8217;t read it :)</p>
<p>Now i see. Interesting approach.</p>
<p>Well models can care about forms (<a href="http://weierophinney.net/matthew/archives/200-Using-Zend_Form-in-Your-Models.html" rel="nofollow">http://weierophinney.net/matthew/archives/200-Using-Zend_Form-in-Your-Models.html</a>) in some cases that can have sense, for filtering, for validation, I like to do it explicitly in controller. But sometimes it&#8217;s handy to pass entire form (ex search form) and get values with $form-&gt;getValue(&#8216;q&#8217;) rather then $param['q'] if you pass values.</p>
<p>When we are there, i&#8217;m strugling to extend Zend_Db_Table_Row_Abstract right way, maybe you have some suggestions, please take a look at <a href="http://n4.nabble.com/Extending-Zend-Db-Table-Row-Abstract-td1559336.html#a1559336" rel="nofollow">http://n4.nabble.com/Extending-Zend-Db-Table-Row-Abstract-td1559336.html#a1559336</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juozas</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-9059</link>
		<dc:creator>Juozas</dc:creator>
		<pubDate>Thu, 18 Feb 2010 15:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-9059</guid>
		<description>umpirsky, have you read the post? :) This exactly what I&#039;m talking about, that you should use getValues and not populate after isValid :)
Though passing Zend_Form is not entirely right as models do not care about forms</description>
		<content:encoded><![CDATA[<p>umpirsky, have you read the post? :) This exactly what I&#8217;m talking about, that you should use getValues and not populate after isValid :)<br />
Though passing Zend_Form is not entirely right as models do not care about forms</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-9057</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Thu, 18 Feb 2010 14:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-9057</guid>
		<description>Hi.

$form = new Form();
 
if ($this-&gt;_request-&gt;isPost()) {
 
    if ($form-&gt;isValid($this-&gt;_request-&gt;getPost())
    {
        $model = new Model($this-&gt;_request-&gt;getPost());
        $model-&gt;save();
    }
    else
    {
        $form-&gt;populate($this-&gt;_request-&gt;getPost());
    }
}

You don&#039;t need to populate since isValid already populates the form. 
Also  $model = new Model($this-&gt;_request-&gt;getPost()) should be replaced with $form-&gt;getValues() or you can pass Zend_Form object to your model.

Thanks for nice post ;)</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>$form = new Form();</p>
<p>if ($this-&gt;_request-&gt;isPost()) {</p>
<p>    if ($form-&gt;isValid($this-&gt;_request-&gt;getPost())<br />
    {<br />
        $model = new Model($this-&gt;_request-&gt;getPost());<br />
        $model-&gt;save();<br />
    }<br />
    else<br />
    {<br />
        $form-&gt;populate($this-&gt;_request-&gt;getPost());<br />
    }<br />
}</p>
<p>You don&#8217;t need to populate since isValid already populates the form.<br />
Also  $model = new Model($this-&gt;_request-&gt;getPost()) should be replaced with $form-&gt;getValues() or you can pass Zend_Form object to your model.</p>
<p>Thanks for nice post ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: petrelevich</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-8845</link>
		<dc:creator>petrelevich</dc:creator>
		<pubDate>Wed, 10 Feb 2010 17:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-8845</guid>
		<description>Very interesting tips, Thank you.
I have translated your article to Russian.
http://www.smartyit.ru/article/77</description>
		<content:encoded><![CDATA[<p>Very interesting tips, Thank you.<br />
I have translated your article to Russian.<br />
<a href="http://www.smartyit.ru/article/77" rel="nofollow">http://www.smartyit.ru/article/77</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max&#8217; Lesestoff zum Wochenende &#124; PHP hates me - Der PHP Blog</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-8737</link>
		<dc:creator>Max&#8217; Lesestoff zum Wochenende &#124; PHP hates me - Der PHP Blog</dc:creator>
		<pubDate>Sat, 06 Feb 2010 06:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-8737</guid>
		<description>[...] auf SVG /Javascript und braucht keine Serverseite. Macht spass damit ein bisschen rumzumalen     Zend Framework tips and tricks &#124; Juozas devBlog Kleine Tips fürs Arbeiten mit dem ZF   =^..^= I Can Has History? =^..^= Internet Geschichte [...]</description>
		<content:encoded><![CDATA[<p>[...] auf SVG /Javascript und braucht keine Serverseite. Macht spass damit ein bisschen rumzumalen     Zend Framework tips and tricks | Juozas devBlog Kleine Tips fürs Arbeiten mit dem ZF   =^..^= I Can Has History? =^..^= Internet Geschichte [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stoimen</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-8585</link>
		<dc:creator>stoimen</dc:creator>
		<pubDate>Mon, 01 Feb 2010 18:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-8585</guid>
		<description>Very good article indeed. What I was trying to write about Zend Framework in my blog is aiming exactly at that problem. The people are using mostly copy/paste from the great ZF doc pages. The real power sometimes lies beneath the ground!</description>
		<content:encoded><![CDATA[<p>Very good article indeed. What I was trying to write about Zend Framework in my blog is aiming exactly at that problem. The people are using mostly copy/paste from the great ZF doc pages. The real power sometimes lies beneath the ground!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juozas Kaziukenas&#8217; Blog: Zend Framework tips and tricks &#124; Development Blog With Code Updates : Developercast.com</title>
		<link>http://dev.juokaz.com/php/zend-framework-tips-and-tricks/comment-page-1#comment-8582</link>
		<dc:creator>Juozas Kaziukenas&#8217; Blog: Zend Framework tips and tricks &#124; Development Blog With Code Updates : Developercast.com</dc:creator>
		<pubDate>Mon, 01 Feb 2010 16:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=964#comment-8582</guid>
		<description>[...] Kaziukenas has a new post to his blog with some tips and tricks for working with the Zend Framework including working with [...]</description>
		<content:encoded><![CDATA[<p>[...] Kaziukenas has a new post to his blog with some tips and tricks for working with the Zend Framework including working with [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
