<?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: Modular Zend Framework Application Skeleton (Part 2: CRUD)</title>
	<atom:link href="http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/</link>
	<description>Programming and Technology</description>
	<lastBuildDate>Thu, 15 Jul 2010 13:40:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: david</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-370</link>
		<dc:creator>david</dc:creator>
		<pubDate>Wed, 12 Aug 2009 09:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-370</guid>
		<description>Hi there,
All the code is unfound.
See [The requested file http://misc.realmofzod.com/code/modular_zend_framework2/view.html could not be found]

best regards

David</description>
		<content:encoded><![CDATA[<p>Hi there,<br />
All the code is unfound.<br />
See [The requested file <a href="http://misc.realmofzod.com/code/modular_zend_framework2/view.html" rel="nofollow">http://misc.realmofzod.com/code/modular_zend_framework2/view.html</a> could not be found]</p>
<p>best regards</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-249</link>
		<dc:creator>brandon</dc:creator>
		<pubDate>Wed, 06 May 2009 16:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-249</guid>
		<description>The examples were lost in a server migration. I will not be restoring them because I consider them obsolete. Please refer to the latest article in the series for the latest examples: http://blog.realmofzod.com/2009/04/08/modular-zend-framework-skeleton-2009/</description>
		<content:encoded><![CDATA[<p>The examples were lost in a server migration. I will not be restoring them because I consider them obsolete. Please refer to the latest article in the series for the latest examples: <a href="http://blog.realmofzod.com/2009/04/08/modular-zend-framework-skeleton-2009/" rel="nofollow">http://blog.realmofzod.com/2009/04/08/modular-zend-framework-skeleton-2009/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-247</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 06 May 2009 13:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-247</guid>
		<description>I can not see your example files, only &quot;[The requested file http://misc.realmofzod.com/code/modular_zend_framework2/_user.html could not be found]&quot;. Can you please look at this?

Thanks,
regards</description>
		<content:encoded><![CDATA[<p>I can not see your example files, only &#8220;[The requested file <a href="http://misc.realmofzod.com/code/modular_zend_framework2/_user.html" rel="nofollow">http://misc.realmofzod.com/code/modular_zend_framework2/_user.html</a> could not be found]&#8220;. Can you please look at this?</p>
<p>Thanks,<br />
regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Modular Zend Framework Skeleton 2009 &#124; Realm of Zod</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-129</link>
		<dc:creator>Modular Zend Framework Skeleton 2009 &#124; Realm of Zod</dc:creator>
		<pubDate>Wed, 08 Apr 2009 20:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-129</guid>
		<description>[...] http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/" rel="nofollow">http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: :brandon</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-105</link>
		<dc:creator>:brandon</dc:creator>
		<pubDate>Sun, 15 Mar 2009 01:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-105</guid>
		<description>what happened to all the examples</description>
		<content:encoded><![CDATA[<p>what happened to all the examples</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Shah</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-63</link>
		<dc:creator>Amit Shah</dc:creator>
		<pubDate>Fri, 04 Jul 2008 06:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-63</guid>
		<description>Hi brandon,

Thanks for your reply. 

I have found the way to get name and enctype of the form. you can get these details with help of getAttrib method.
$this-&gt;form-&gt;getAttrib(&#039;name&#039;)
$this-&gt;form-&gt;getAttrib(&#039;enctype&#039;)

Cheers :)</description>
		<content:encoded><![CDATA[<p>Hi brandon,</p>
<p>Thanks for your reply. </p>
<p>I have found the way to get name and enctype of the form. you can get these details with help of getAttrib method.<br />
$this-&gt;form-&gt;getAttrib(&#8216;name&#8217;)<br />
$this-&gt;form-&gt;getAttrib(&#8216;enctype&#8217;)</p>
<p>Cheers :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-61</link>
		<dc:creator>brandon</dc:creator>
		<pubDate>Thu, 03 Jul 2008 13:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-61</guid>
		<description>Ok well if you are using the phptal view plugin it would look something like this:

&lt;form tal:attributes=&quot;id form/id;name form/name;enctype form/enctype;action php:url(array(&#039;action&#039; =&gt; &#039;edit&#039;))&quot; method=&quot;post&quot;&gt;

If you are using standard phtml it would look like this:

&lt;form id=&quot;&lt;?php echo $this-&gt;form-&gt;id; ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;form-&gt;name; ?&gt;&quot; enctype=&quot;&lt;?php echo $this-&gt;form-&gt;enctype; ?&gt;&quot; action=&quot;&lt;?php echo this-&gt;url(array(&#039;action&#039; =&gt; &#039;id&#039;)); ?&gt;&quot; method=&quot;post&quot;&gt;

This is minus properly escaping the variables which is good practice, and given that I avoid standard phtml I cannot confirm that this is 100% accurate but according to the zend manual it should work.

Both examples assume that your form object has those fields and has been assigned properly in the controller via: $this-&gt;view-&gt;form = ....

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Ok well if you are using the phptal view plugin it would look something like this:</p>
<p>&lt;form tal:attributes=&#8221;id form/id;name form/name;enctype form/enctype;action php:url(array(&#8216;action&#8217; => &#8216;edit&#8217;))&#8221; method=&#8221;post&#8221;&gt;</p>
<p>If you are using standard phtml it would look like this:</p>
<p>&lt;form id=&#8221;&lt;?php echo $this->form->id; ?>&#8221; name=&#8221;&lt;?php echo $this->form->name; ?>&#8221; enctype=&#8221;&lt;?php echo $this->form->enctype; ?>&#8221; action=&#8221;&lt;?php echo this->url(array(&#8216;action&#8217; => &#8216;id&#8217;)); ?>&#8221; method=&#8221;post&#8221;></p>
<p>This is minus properly escaping the variables which is good practice, and given that I avoid standard phtml I cannot confirm that this is 100% accurate but according to the zend manual it should work.</p>
<p>Both examples assume that your form object has those fields and has been assigned properly in the controller via: $this->view->form = &#8230;.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Shah</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-60</link>
		<dc:creator>Amit Shah</dc:creator>
		<pubDate>Thu, 03 Jul 2008 09:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-60</guid>
		<description>My question is how could we pass form name and enctype dynamically? For more clarity below 2 lines I have added in model file.

PHP Code:
$this-&gt;setName(&#039;category&#039;);
$this-&gt;setAttrib(&#039;enctype&#039;, &#039;multipart/form-data&#039;); 

Now I want to create .phtml file(view). Here I don&#039;t want to use form; ?&gt; Instead of I&#039;m creating phtml file as per my format. How could I get form name and enctype in that form.

&lt;form id=&quot;???&quot; enctype=&quot;???&quot; action=&quot;url(array(&#039;action&#039;=&gt;&#039;edit&#039;)); ?&gt;&quot; method=&quot;post&quot; &gt;</description>
		<content:encoded><![CDATA[<p>My question is how could we pass form name and enctype dynamically? For more clarity below 2 lines I have added in model file.</p>
<p>PHP Code:<br />
$this-&gt;setName(&#8216;category&#8217;);<br />
$this-&gt;setAttrib(&#8216;enctype&#8217;, &#8216;multipart/form-data&#8217;); </p>
<p>Now I want to create .phtml file(view). Here I don&#8217;t want to use form; ?&gt; Instead of I&#8217;m creating phtml file as per my format. How could I get form name and enctype in that form.</p>
<p>&lt;form id=&#8221;???&#8221; enctype=&#8221;???&#8221; action=&#8221;url(array(&#8216;action&#8217;=&gt;&#8217;edit&#8217;)); ?&gt;&#8221; method=&#8221;post&#8221; &gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-59</link>
		<dc:creator>brandon</dc:creator>
		<pubDate>Thu, 03 Jul 2008 00:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-59</guid>
		<description>I&#039;m not entirely sure what your trying to do. Can you provide more details on your problem and your implementation?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not entirely sure what your trying to do. Can you provide more details on your problem and your implementation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Shah</title>
		<link>http://blog.realmofzod.com/2008/03/19/modular-zend-framework-application-skeleton-part-2-crud/comment-page-1/#comment-58</link>
		<dc:creator>Amit Shah</dc:creator>
		<pubDate>Wed, 02 Jul 2008 12:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realmofzod.com/?p=6#comment-58</guid>
		<description>How could we set form dynamically?

In models/CategoryForm.php
I have apply following code

public function __construct($options = null)
{
$this-&gt;addElementPrefixPath(&#039;App&#039;, &#039;App/&#039;);
parent::__construct($options);
		
$this-&gt;setName(&#039;category&#039;);
$this-&gt;setAttrib(&#039;enctype&#039;, &#039;multipart/form-data&#039;);

Now how could we put code in phtml file so it would set properly.</description>
		<content:encoded><![CDATA[<p>How could we set form dynamically?</p>
<p>In models/CategoryForm.php<br />
I have apply following code</p>
<p>public function __construct($options = null)<br />
{<br />
$this-&gt;addElementPrefixPath(&#8216;App&#8217;, &#8216;App/&#8217;);<br />
parent::__construct($options);</p>
<p>$this-&gt;setName(&#8216;category&#8217;);<br />
$this-&gt;setAttrib(&#8216;enctype&#8217;, &#8216;multipart/form-data&#8217;);</p>
<p>Now how could we put code in phtml file so it would set properly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
