<?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: A Zend Framework tutorial, part two</title>
	<atom:link href="http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/feed/" rel="self" type="application/rss+xml" />
	<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/</link>
	<description>Go dik-dik, go!</description>
	<lastBuildDate>Mon, 26 Jul 2010 04:31:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Behrang</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-102231</link>
		<dc:creator>Behrang</dc:creator>
		<pubDate>Wed, 05 May 2010 05:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-102231</guid>
		<description>Hello I am nerd w in zend programming can I contact with you to get answered my question?
another else if I have table with self dependence like this:
table page (page_id,page_name,page_parent_id)
it means one page can have more page branch
what can I do in my code to have correct response .
thanks</description>
		<content:encoded><![CDATA[<p>Hello I am nerd w in zend programming can I contact with you to get answered my question?<br />
another else if I have table with self dependence like this:<br />
table page (page_id,page_name,page_parent_id)<br />
it means one page can have more page branch<br />
what can I do in my code to have correct response .<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Behrang</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-102230</link>
		<dc:creator>Behrang</dc:creator>
		<pubDate>Wed, 05 May 2010 05:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-102230</guid>
		<description>sdfsd</description>
		<content:encoded><![CDATA[<p>sdfsd</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo Rebelo</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-28728</link>
		<dc:creator>Hugo Rebelo</dc:creator>
		<pubDate>Thu, 21 Aug 2008 04:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-28728</guid>
		<description>Shit, this striped HTML tags. 
But anyway I hope this can help.</description>
		<content:encoded><![CDATA[<p>Shit, this striped HTML tags.<br />
But anyway I hope this can help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo Rebelo</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-28727</link>
		<dc:creator>Hugo Rebelo</dc:creator>
		<pubDate>Thu, 21 Aug 2008 04:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-28727</guid>
		<description>Amit Shah, there is a way. Take a look:

Assuming that you have correctly setup model (i.e. $_referenceMap ).

CONTROLLER:
===============================================
public function indexAction()
{
//logic of the function
$this-&gt;view-&gt;title = “My Projects”;
$projects = new Projects();
$where = “1=1″;

$this-&gt;view-&gt;projects = $projects-&gt;fetchAll($where);
(...)


VIEW:
===============================================
(...)
 
    
        Foo
    

    projects as $project) { ?&gt;
    
        escape($project-&gt;findParentRow(&#039;category&#039;)-&gt;name); ?&gt;
    
    


(...)</description>
		<content:encoded><![CDATA[<p>Amit Shah, there is a way. Take a look:</p>
<p>Assuming that you have correctly setup model (i.e. $_referenceMap ).</p>
<p>CONTROLLER:<br />
===============================================<br />
public function indexAction()<br />
{<br />
//logic of the function<br />
$this-&gt;view-&gt;title = “My Projects”;<br />
$projects = new Projects();<br />
$where = “1=1″;</p>
<p>$this-&gt;view-&gt;projects = $projects-&gt;fetchAll($where);<br />
(&#8230;)</p>
<p>VIEW:<br />
===============================================<br />
(&#8230;)</p>
<p>        Foo</p>
<p>    projects as $project) { ?&gt;</p>
<p>        escape($project-&gt;findParentRow(&#8216;category&#8217;)-&gt;name); ?&gt;</p>
<p>(&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Shah</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-23833</link>
		<dc:creator>Amit Shah</dc:creator>
		<pubDate>Fri, 04 Jul 2008 06:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-23833</guid>
		<description>In this article you have given detail about DependentRowset. How could we use ParentRow in ZF. 
e.g. I have one table photoalbum and one category. I&#039;m creating photoalbum listing page and want to show category  name with photoalbum name. 

public function indexAction()
	{
		//logic of the function
		$this-&gt;view-&gt;title = &quot;My Projects&quot;;
		$projects = new Projects();
		$where = &quot;1=1&quot;;
		
		$this-&gt;view-&gt;projects = $projects-&gt;fetchAll($where);
		$projectRow = $this-&gt;view-&gt;projects-&gt;current();
		$categoryArray	= $projectRow-&gt;findParentRow(&#039;categorys&#039;);
		
	}	
In above indexAction I have fetch all records from project which is photoalbum. To find parent row we have take current records and after that we can use findParentRow. Is there any ways to fetch all category name of the projects (photoalbums) using single function or process?</description>
		<content:encoded><![CDATA[<p>In this article you have given detail about DependentRowset. How could we use ParentRow in ZF.<br />
e.g. I have one table photoalbum and one category. I&#8217;m creating photoalbum listing page and want to show category  name with photoalbum name. </p>
<p>public function indexAction()<br />
	{<br />
		//logic of the function<br />
		$this-&gt;view-&gt;title = &#8220;My Projects&#8221;;<br />
		$projects = new Projects();<br />
		$where = &#8220;1=1&#8243;;</p>
<p>		$this-&gt;view-&gt;projects = $projects-&gt;fetchAll($where);<br />
		$projectRow = $this-&gt;view-&gt;projects-&gt;current();<br />
		$categoryArray	= $projectRow-&gt;findParentRow(&#8216;categorys&#8217;);</p>
<p>	}<br />
In above indexAction I have fetch all records from project which is photoalbum. To find parent row we have take current records and after that we can use findParentRow. Is there any ways to fetch all category name of the projects (photoalbums) using single function or process?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venny</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-20814</link>
		<dc:creator>venny</dc:creator>
		<pubDate>Mon, 02 Jun 2008 07:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-20814</guid>
		<description>I love the way you describe what u&#039;re thinking, but I still can&#039;t understand the detail such as where should I put the part of program you&#039;ve explained, how your database structure (fields of each table) and others..

I think it&#039;s better to explain what you think by giving a complete source, so it be easier to understand.. 

but, afterall I really love your article... thanks :D</description>
		<content:encoded><![CDATA[<p>I love the way you describe what u&#8217;re thinking, but I still can&#8217;t understand the detail such as where should I put the part of program you&#8217;ve explained, how your database structure (fields of each table) and others..</p>
<p>I think it&#8217;s better to explain what you think by giving a complete source, so it be easier to understand.. </p>
<p>but, afterall I really love your article&#8230; thanks <img src='http://naneau.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paperogiallo</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-1329</link>
		<dc:creator>paperogiallo</dc:creator>
		<pubDate>Tue, 07 Aug 2007 22:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-1329</guid>
		<description>But, after all that declaring dependentTables and References, is there a simple way to get the value of a lookup table? I&#039;ve read so many pages of the manual, and so many times, but I can&#039;t figure out how... :(

Say that you want to display a rowset of all the posts, with the post-author name: how could you?</description>
		<content:encoded><![CDATA[<p>But, after all that declaring dependentTables and References, is there a simple way to get the value of a lookup table? I&#8217;ve read so many pages of the manual, and so many times, but I can&#8217;t figure out how&#8230; <img src='http://naneau.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Say that you want to display a rowset of all the posts, with the post-author name: how could you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cosmin</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-1012</link>
		<dc:creator>Cosmin</dc:creator>
		<pubDate>Tue, 17 Jul 2007 16:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-1012</guid>
		<description>I&#039;m using $this-&gt;_db-&gt;select() ($this-&gt;getAdapter()) and it&#039;s working nicely. But this relative logic it&#039;s a lot more clear and intuitive... too bad i can&#039;t use it :( Maybe in future releases of the framework.

Thanks for your answer.</description>
		<content:encoded><![CDATA[<p>I&#8217;m using $this-&gt;_db-&gt;select() ($this-&gt;getAdapter()) and it&#8217;s working nicely. But this relative logic it&#8217;s a lot more clear and intuitive&#8230; too bad i can&#8217;t use it <img src='http://naneau.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Maybe in future releases of the framework.</p>
<p>Thanks for your answer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naneau</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-1003</link>
		<dc:creator>Naneau</dc:creator>
		<pubDate>Mon, 16 Jul 2007 16:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-1003</guid>
		<description>Yeah, if you limit yourself to Zend_Db_Table and it&#039;s methods, this is probably as good as it gets. That is because what you want to do requires a bit more logic than it offers. You can use the database object directly (getAdapter()) and use select(), but I think tinkering with find() and fetchAll() will be most succesful in the end, as it will yield Zend_Db_Table_Rows as a result.</description>
		<content:encoded><![CDATA[<p>Yeah, if you limit yourself to Zend_Db_Table and it&#8217;s methods, this is probably as good as it gets. That is because what you want to do requires a bit more logic than it offers. You can use the database object directly (getAdapter()) and use select(), but I think tinkering with find() and fetchAll() will be most succesful in the end, as it will yield Zend_Db_Table_Rows as a result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cosmin</title>
		<link>http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/comment-page-1/#comment-1000</link>
		<dc:creator>Cosmin</dc:creator>
		<pubDate>Mon, 16 Jul 2007 15:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/04/24/a-zend-framework-tutorial-part-two/#comment-1000</guid>
		<description>nice tut on using relative tables
i have a problem though:

i&#039;ll adapt my problem to suit your example&#039;s tables (User and Post).
if i want to get all posts by one specific user, ur code works perfectly.
but i have another situation: i need all users that have posts. all ideas i came up to are pretty ugly, one of them being:

        $users = $this-&gt;fetchAll();
        if ($users-&gt;valid())
        {
            foreach ($users as $user)
            {
                $posts = $user-&gt;findDependentRowset(&#039;Post&#039;);
                if ($posts-&gt;valid())
                {
                    echo $user-&gt;name . &#039; &#039;;
                }
            }
        }

if i add where clauses in both cases (another if&#039;s statements), it gets even uglier.

any easier ideas ? might be to obvious to see it :D

thanks, cosmin</description>
		<content:encoded><![CDATA[<p>nice tut on using relative tables<br />
i have a problem though:</p>
<p>i&#8217;ll adapt my problem to suit your example&#8217;s tables (User and Post).<br />
if i want to get all posts by one specific user, ur code works perfectly.<br />
but i have another situation: i need all users that have posts. all ideas i came up to are pretty ugly, one of them being:</p>
<p>        $users = $this-&gt;fetchAll();<br />
        if ($users-&gt;valid())<br />
        {<br />
            foreach ($users as $user)<br />
            {<br />
                $posts = $user-&gt;findDependentRowset(&#8216;Post&#8217;);<br />
                if ($posts-&gt;valid())<br />
                {<br />
                    echo $user-&gt;name . &#8216; &#8216;;<br />
                }<br />
            }<br />
        }</p>
<p>if i add where clauses in both cases (another if&#8217;s statements), it gets even uglier.</p>
<p>any easier ideas ? might be to obvious to see it <img src='http://naneau.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>thanks, cosmin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
