<?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"
	>
<channel>
	<title>Comments on: Zend Framework: Test Code Upgrade to 0.1.2</title>
	<atom:link href="http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/</link>
	<description>Developing PHP and XUL Software in the Real World</description>
	<pubDate>Thu, 28 Aug 2008 14:13:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-2185</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Sun, 09 Jul 2006 19:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-2185</guid>
		<description>Ah, I see what you mean now. From what I can tell Zend_Db_Table solely operates on one table (or view), so you would have to use the Zend_Db. ZF-34 is a feature request for Zend_Db_Table to support join() (http://framework.zend.com/issues/browse/ZF-34).

It's probably worth having a look at Zend_Db_Select though for creation of the select statement. (http://framework.zend.com/manual/en/zend.db.select.html)

Regards,

Rob…</description>
		<content:encoded><![CDATA[<p>Ah, I see what you mean now. From what I can tell Zend_Db_Table solely operates on one table (or view), so you would have to use the Zend_Db. ZF-34 is a feature request for Zend_Db_Table to support join() (http://framework.zend.com/issues/browse/ZF-34).</p>
<p>It's probably worth having a look at Zend_Db_Select though for creation of the select statement. (http://framework.zend.com/manual/en/zend.db.select.html)</p>
<p>Regards,</p>
<p>Rob…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flo</title>
		<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-2182</link>
		<dc:creator>flo</dc:creator>
		<pubDate>Sun, 09 Jul 2006 18:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-2182</guid>
		<description>ex:

  let's say there are 2 tables: dis (id) and loc (id,jid)
  query: SELECT dis.* FROM dis JOIN loc ON dis.id=loc.jid;

  in models/Loc.php: class Loc extends Zend_Db_Table;

    i made a method like this

        function findJudetFromMultiple($fields, $join, $on, $where = null) {
            $db = Zend::registry('db');
            $sql = "SELECT {$fields} FROM {$join} JOIN {$this-&#62;_name} ON {$on}";
            if (!is_null($where)) {
                $sql .= "WHERE {$where}";
            }
            $res = $db-&#62;query($sql);
            return $res-&#62;fetchAll();
        }

    using Zend_Db object from registry, not using Zend_Db_Table (except for $this-&#62;_name)

  i was thinking of using more Zend_Db_Table and less Zend_Db... but no results. maybe you have some ideas. thanks</description>
		<content:encoded><![CDATA[<p>ex:</p>
<p>  let's say there are 2 tables: dis (id) and loc (id,jid)<br />
  query: SELECT dis.* FROM dis JOIN loc ON dis.id=loc.jid;</p>
<p>  in models/Loc.php: class Loc extends Zend_Db_Table;</p>
<p>    i made a method like this</p>
<p>        function findJudetFromMultiple($fields, $join, $on, $where = null) {<br />
            $db = Zend::registry('db');<br />
            $sql = "SELECT {$fields} FROM {$join} JOIN {$this-&gt;_name} ON {$on}";<br />
            if (!is_null($where)) {<br />
                $sql .= "WHERE {$where}";<br />
            }<br />
            $res = $db-&gt;query($sql);<br />
            return $res-&gt;fetchAll();<br />
        }</p>
<p>    using Zend_Db object from registry, not using Zend_Db_Table (except for $this-&gt;_name)</p>
<p>  i was thinking of using more Zend_Db_Table and less Zend_Db&#8230; but no results. maybe you have some ideas. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-2181</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Sun, 09 Jul 2006 18:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-2181</guid>
		<description>Hi Flo.

Can you give me an example?

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Hi Flo.</p>
<p>Can you give me an example?</p>
<p>Regards,</p>
<p>Rob&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flo</title>
		<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-2180</link>
		<dc:creator>flo</dc:creator>
		<pubDate>Sun, 09 Jul 2006 17:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-2180</guid>
		<description>i am developping an application which require multiple selects. that's why i think extending Zend_Db_Table is not helping me. i was wandering if u can give me some workout for this. many thanks in advance.</description>
		<content:encoded><![CDATA[<p>i am developping an application which require multiple selects. that's why i think extending Zend_Db_Table is not helping me. i was wandering if u can give me some workout for this. many thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-47</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Fri, 10 Mar 2006 09:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-47</guid>
		<description>I think it's too early to tell what best practice will be. I fully expect that once the new Routing stuff goes in, then my extensions to the Router will become unncessary.

I expect that specific projects will extend the Action class though it all depends on how the view gets tied to the actions by default. With any luck, it'll be mostly seamless so that extending the Action is rare rather than required like now.

It's 100% certain that my implementation will break on nearly every new release of ZF at the moment :) but then this is all is pre-pre-pre alpha at the moment.</description>
		<content:encoded><![CDATA[<p>I think it's too early to tell what best practice will be. I fully expect that once the new Routing stuff goes in, then my extensions to the Router will become unncessary.</p>
<p>I expect that specific projects will extend the Action class though it all depends on how the view gets tied to the actions by default. With any luck, it'll be mostly seamless so that extending the Action is rare rather than required like now.</p>
<p>It's 100% certain that my implementation will break on nearly every new release of ZF at the moment :) but then this is all is pre-pre-pre alpha at the moment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-46</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 10 Mar 2006 06:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-46</guid>
		<description>Is it best practice to extend the Action and Router classes? I expect that since ZF is still very early on in development, that the base classes will change and this will break your implementation. Do you suggest that we extend Action and Router as needed /if neccessary?/</description>
		<content:encoded><![CDATA[<p>Is it best practice to extend the Action and Router classes? I expect that since ZF is still very early on in development, that the base classes will change and this will break your implementation. Do you suggest that we extend Action and Router as needed /if neccessary?/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-45</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 09 Mar 2006 20:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-45</guid>
		<description>Depending on the development progress of the framework, it's probally going to be a big part of my next project.  It's great to see how other people are using it (even within small test applications)</description>
		<content:encoded><![CDATA[<p>Depending on the development progress of the framework, it's probally going to be a big part of my next project.  It's great to see how other people are using it (even within small test applications)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-44</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Thu, 09 Mar 2006 19:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-44</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Livingston</title>
		<link>http://akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-43</link>
		<dc:creator>Dr Livingston</dc:creator>
		<pubDate>Thu, 09 Mar 2006 17:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/03/09/zend-framework-test-code-upgrade-to-012/#comment-43</guid>
		<description>nice work... 

i've spent a few hours looking at the controller, et al today and have taken the opportunity to put something together that suits my own needs.

keep up the good work, and a big thanks to all who contribute, les</description>
		<content:encoded><![CDATA[<p>nice work&#8230; </p>
<p>i've spent a few hours looking at the controller, et al today and have taken the opportunity to put something together that suits my own needs.</p>
<p>keep up the good work, and a big thanks to all who contribute, les</p>
]]></content:encoded>
	</item>
</channel>
</rss>
