<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shared Know How &#187; php</title>
	<atom:link href="http://www.sharedknowhow.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharedknowhow.com</link>
	<description>Howto: fix, find, use, make &#38; do it guide</description>
	<lastBuildDate>Fri, 16 Apr 2010 09:41:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solved Dojo&gt; Dijit.Dialog in ZendFrameWork doesn&#8217;t parse</title>
		<link>http://www.sharedknowhow.com/2009/06/solved-dojo-dijitdialog-in-zendframework-doesnt-parse/</link>
		<comments>http://www.sharedknowhow.com/2009/06/solved-dojo-dijitdialog-in-zendframework-doesnt-parse/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 13:23:39 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[dijit]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[zendframework]]></category>

		<guid isPermaLink="false">http://www.sharedknowhow.com/?p=78</guid>
		<description><![CDATA[When trying to make a Dojo dialog work with another controller which is loaded trough the href attribute of the dialog. The content will not render as dijit elements.
This is because ZendFramework places all the properties in the Javascript array zendDijits and then add them to the elements after loading. However this will not work [...]]]></description>
			<content:encoded><![CDATA[<p>When trying to make a Dojo dialog work with another controller which is loaded trough the href attribute of the dialog. The content will not render as dijit elements.</p>
<p>This is because ZendFramework places all the properties in the Javascript array zendDijits and then add them to the elements after loading. However this will not work for the loaded Dialog because the ZendDijits are set in the view of the controller opening the dialog.</p>
<p>The simple solution to this is to use the declaritive formin the Zend_Dojo_View_Helper_Dojo by placing the following line in your code:</p>
<pre class="php">&nbsp;
Zend_Dojo_View_Helper_Dojo::<span style="color: #006600;">setUseDeclarative</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>I placed this in my bootstrap.php right after the line where the Zend_Dojo_View_Helper is loaded.</p>
<p>Making de view helper declarative will place the dojo properties directly into the html of the elements.<br />
Side-effect: the script will not be correctly verified as valid (x)html but it will solve the problem!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharedknowhow.com/2009/06/solved-dojo-dijitdialog-in-zendframework-doesnt-parse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
