<?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: Getting to know Zend_View</title>
	<atom:link href="http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/feed/" rel="self" type="application/rss+xml" />
	<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/</link>
	<description>Web Design and Development</description>
	<lastBuildDate>Sat, 25 Apr 2009 18:49:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: PHP Framework Resource Guide &#171; Ammasajan&#8217;s Weblog</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-46775</link>
		<dc:creator>PHP Framework Resource Guide &#171; Ammasajan&#8217;s Weblog</dc:creator>
		<pubDate>Thu, 26 Jun 2008 08:34:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-46775</guid>
		<description>&lt;p&gt;[...] Getting to know Zend_View [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Getting to know Zend_View [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-25864</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 19 Sep 2007 00:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-25864</guid>
		<description>&lt;p&gt;Hi Vance,&lt;/p&gt;

&lt;p&gt;I don&#039;t use Rails, Django or Cake so I&#039;m really not in a position to comment specifically. What I would say however is that the first two are not PHP based frameworks so we&#039;d get into the surrounding questions such as how available hosting is for Ruby and Python based applications. How many clients have existing projects that are PHP based but need some re-organising, etc.&lt;/p&gt;

&lt;p&gt;Cake is of course PHP based but it&#039;s hard to convince clients of the value of a web application called Cake when comparing it to one with the backing of Zend and the involvement of companies like IBM.&lt;/p&gt;

&lt;p&gt;In other words you could well be right but this is just one tiny facet of the decision-making involved with choosing a framework.&lt;/p&gt;

&lt;p&gt;As an aside I&#039;ve followed Django more than I have RonR or Cake and would like to give it a go myself sometime. I notice you have some Django code on your site so I&#039;d be interested to hear about your experiences with it and why you&#039;re looking at ZF.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Vance,</p>

<p>I don&#8217;t use Rails, Django or Cake so I&#8217;m really not in a position to comment specifically. What I would say however is that the first two are not PHP based frameworks so we&#8217;d get into the surrounding questions such as how available hosting is for Ruby and Python based applications. How many clients have existing projects that are PHP based but need some re-organising, etc.</p>

<p>Cake is of course PHP based but it&#8217;s hard to convince clients of the value of a web application called Cake when comparing it to one with the backing of Zend and the involvement of companies like IBM.</p>

<p>In other words you could well be right but this is just one tiny facet of the decision-making involved with choosing a framework.</p>

<p>As an aside I&#8217;ve followed Django more than I have RonR or Cake and would like to give it a go myself sometime. I notice you have some Django code on your site so I&#8217;d be interested to hear about your experiences with it and why you&#8217;re looking at ZF.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Vance Dubberly</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-25861</link>
		<dc:creator>Vance Dubberly</dc:creator>
		<pubDate>Tue, 18 Sep 2007 23:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-25861</guid>
		<description>&lt;p&gt;Seems like alot of extra code to do what Rails, Django, and Cake can do automatically.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Seems like alot of extra code to do what Rails, Django, and Cake can do automatically.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Dean</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-494</link>
		<dc:creator>Dan Dean</dc:creator>
		<pubDate>Tue, 12 Sep 2006 01:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-494</guid>
		<description>&lt;p&gt;Everything&#039;s there - looks kinda clunky though.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Everything&#8217;s there &#8211; looks kinda clunky though.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Dean</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-493</link>
		<dc:creator>Dan Dean</dc:creator>
		<pubDate>Tue, 12 Sep 2006 01:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-493</guid>
		<description>&lt;p&gt;This seems to work well for me, hopefully the code renders correctly in this comment:&lt;/p&gt;

&lt;p&gt;In Controller:&lt;/p&gt;

&lt;pre&gt;
$view-&gt;headerTemplate = &#039;modules/header.tpl.php&#039;;
$view-&gt;footerTemplate = &#039;modules/footer.tpl.php&#039;;
$view-&gt;actionTemplate = &#039;pageIndex.tpl.php&#039;;
echo $view-&gt;render(&#039;site.tpl.php&#039;);
&lt;/pre&gt;

&lt;p&gt;In View site.tpl.php&lt;/p&gt;

&lt;pre&gt;

    render($this-&gt;headerTemplate)); ?&gt;
    
        &lt;!-- Everything in here comes from the action --&gt;
        render($this-&gt;actionTemplate)); ?&gt;
    
    render($this-&gt;footerTemplate)); ?&gt;

&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>This seems to work well for me, hopefully the code renders correctly in this comment:</p>

<p>In Controller:</p>

<pre><pre>
$view-&amp;gt;headerTemplate = &#039;modules/header.tpl.php&#039;;
$view-&amp;gt;footerTemplate = &#039;modules/footer.tpl.php&#039;;
$view-&amp;gt;actionTemplate = &#039;pageIndex.tpl.php&#039;;
echo $view-&amp;gt;render(&#039;site.tpl.php&#039;);
</pre></pre>

<p>In View site.tpl.php</p>

<pre><pre>

&nbsp;&nbsp;&nbsp;&nbsp;render($this-&amp;gt;headerTemplate)); ?&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- Everything in here comes from the action --&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;render($this-&amp;gt;actionTemplate)); ?&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;render($this-&amp;gt;footerTemplate)); ?&amp;gt;

</pre></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Milesich</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-131</link>
		<dc:creator>Martin Milesich</dc:creator>
		<pubDate>Mon, 17 Jul 2006 09:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-131</guid>
		<description>&lt;p&gt;There should be&lt;/p&gt;

&lt;p&gt;foreach ($this-&gt;files as $val) {&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>There should be</p>

<p>foreach ($this-&gt;files as $val) {</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Milesich</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-130</link>
		<dc:creator>Martin Milesich</dc:creator>
		<pubDate>Mon, 17 Jul 2006 09:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-130</guid>
		<description>&lt;p&gt;Hi Nick,
I&#039;m doing it in this way&lt;/p&gt;

&lt;p&gt;In controler:
    $view-&gt;files = array(&#039;menu_admin.php&#039;,&#039;customers/customers_index.php&#039;);
    echo $view-&gt;render(&#039;template_user.php&#039;);&lt;/p&gt;

&lt;p&gt;In view (template_user.php):
    files as $val) {
            $this-&gt;render($val);
        }
    ?&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Nick,
I&#8217;m doing it in this way</p>

<p>In controler:
    $view-&gt;files = array(&#8216;menu_admin.php&#8217;,'customers/customers_index.php&#8217;);
    echo $view-&gt;render(&#8216;template_user.php&#8217;);</p>

<p>In view (template_user.php):
    files as $val) {
            $this-&gt;render($val);
        }
    ?&gt;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-9</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 14 Jun 2006 13:29:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-9</guid>
		<description>&lt;p&gt;Thanks Terry, this should be it:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;class ProPHP_View extends Zend_View
{
    public function renderPage($body =&#039;â€™)
    {
        $html = $this-&gt;render(&#039;header.tpl.php&#039;);
        if ( !empty($body))
        {
            $html .= $this-&gt;render($body);
        }
        $html .= $this-&gt;render(&#039;footer.tpl.php&#039;);
        return $html;
    }
}

class SampleController extends Zend_Controller_Action
{
    public function indexAction()
    {
        $view = new ProPHP_View();
        echo $view-&gt;renderPage(&#039;sample.index.tpl.php&#039;);
    }

    public function loginAction()
    {
        $form = new ProPHP_Form($params); 
        $view = new ProPHP_View();
        $view-&gt;assign(&#039;Content&#039;, $form-&gt;generate());
        echo $view-&gt;renderPage();
    }

}
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Terry, this should be it:</p>

<pre>[[code]]czo3NDM6XCJjbGFzcyBQcm9QSFBfVmlldyBleHRlbmRzIFplbmRfVmlldwp7CiAgICBwdWJsaWMgZnVuY3Rpb24gcmVuZGVyUGFnZSh7WyYqJl19JGJvZHkgPVwnw6LigqzihKIpCiAgICB7CiAgICAgICAgJGh0bWwgPSAkdGhpcy0mZ3Q7cmVuZGVyKFwnaGVhZGVyLnRwbC5waHBcJyk7CntbJiomXX0gICAgICAgIGlmICggIWVtcHR5KCRib2R5KSkKICAgICAgICB7CiAgICAgICAgICAgICRodG1sIC49ICR0aGlzLSZndDtyZW5kZXIoe1smKiZdfSRib2R5KTsKICAgICAgICB9CiAgICAgICAgJGh0bWwgLj0gJHRoaXMtJmd0O3JlbmRlcihcJ2Zvb3Rlci50cGwucGhwXCcpOwogICAgIHtbJiomXX0gICByZXR1cm4gJGh0bWw7CiAgICB9Cn0KCmNsYXNzIFNhbXBsZUNvbnRyb2xsZXIgZXh0ZW5kcyBaZW5kX0NvbnRyb2xsZXJfQWN0e1smKiZdfWlvbgp7CiAgICBwdWJsaWMgZnVuY3Rpb24gaW5kZXhBY3Rpb24oKQogICAgewogICAgICAgICR2aWV3ID0gbmV3IFByb1BIUF9WaWV7WyYqJl19dygpOwogICAgICAgIGVjaG8gJHZpZXctJmd0O3JlbmRlclBhZ2UoXCdzYW1wbGUuaW5kZXgudHBsLnBocFwnKTsKICAgIH0KCiAgICBwe1smKiZdfXVibGljIGZ1bmN0aW9uIGxvZ2luQWN0aW9uKCkKICAgIHsKICAgICAgICAkZm9ybSA9IG5ldyBQcm9QSFBfRm9ybSgkcGFyYW1zKTt7WyYqJl19IAogICAgICAgICR2aWV3ID0gbmV3IFByb1BIUF9WaWV3KCk7CiAgICAgICAgJHZpZXctJmd0O2Fzc2lnbihcJ0NvbnRlbnRcJywgJGZve1smKiZdfXJtLSZndDtnZW5lcmF0ZSgpKTsKICAgICAgICBlY2hvICR2aWV3LSZndDtyZW5kZXJQYWdlKCk7CiAgICB9Cgp9ClwiO3tbJiomXX0=[[/code]]</pre>]]></content:encoded>
	</item>
	<item>
		<title>By: Terry Cullen</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-8</link>
		<dc:creator>Terry Cullen</dc:creator>
		<pubDate>Wed, 14 Jun 2006 12:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-8</guid>
		<description>&lt;p&gt;Hi Nick,
My code sample is missing this from the top;
class ProPHP_View extends Zend_View
{
    public function renderPage($body =&#039;&#039;)
    {
        $html  = $this-&gt;&lt;/p&gt;

&lt;p&gt;It may have broke because I added the starting php tag.&lt;/p&gt;

&lt;p&gt;I have had a bit of a look at Zend_View_Helper but I wrote my form classes before it existed. 
Terry&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Nick,
My code sample is missing this from the top;
class ProPHP_View extends Zend_View
{
    public function renderPage($body =&#8221;)
    {
        $html  = $this-&gt;</p>

<p>It may have broke because I added the starting php tag.</p>

<p>I have had a bit of a look at Zend_View_Helper but I wrote my form classes before it existed. 
Terry</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://ingredients.com.au/blog/2006/06/10/getting-to-know-zend_view/comment-page-1/#comment-7</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 14 Jun 2006 10:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ingredients.com.au/nick/2006/06/10/getting-to-know-zend_view/#comment-7</guid>
		<description>&lt;p&gt;Hi Terry,&lt;/p&gt;

&lt;p&gt;Sorry about the problem posting your code, I have &lt;a href=&quot;http://www.michelf.com/projects/php-markdown/&quot; rel=&quot;nofollow&quot;&gt;PHP Markdown&lt;/a&gt; installed to format these posts and it&#039;s a fiddle trying to find its sweet spot with code and pre tags. Anyway, I tidied up your post for you, let me know if I made any errors.&lt;/p&gt;

&lt;p&gt;You look like you have a few combinations in there. Out of interest have you looked at using Zend View Helper for generating the form or form elements here...&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$view-&gt;assign(&#039;Content&#039;, $form-&gt;generate());
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;...and if so how have you found it?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Terry,</p>

<p>Sorry about the problem posting your code, I have <a href="http://www.michelf.com/projects/php-markdown/" rel="nofollow">PHP Markdown</a> installed to format these posts and it&#8217;s a fiddle trying to find its sweet spot with code and pre tags. Anyway, I tidied up your post for you, let me know if I made any errors.</p>

<p>You look like you have a few combinations in there. Out of interest have you looked at using Zend View Helper for generating the form or form elements here&#8230;</p>

<pre>[[code]]czo1MTpcIiR2aWV3LSZndDthc3NpZ24oXCdDb250ZW50XCcsICRmb3JtLSZndDtnZW5lcmF0ZSgpKTsKXCI7e1smKiZdfQ==[[/code]]</pre>

<p>&#8230;and if so how have you found it?</p>]]></content:encoded>
	</item>
</channel>
</rss>

