<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: JSON Format with PHP/Zend Framework = empty table</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/json-format-with-phpzend-framework-empty-table</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/json-format-with-phpzend-framework-empty-table/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ivano on JSON Format with PHP/Zend Framework = empty table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/json-format-with-phpzend-framework-empty-table#p7798</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/json-format-with-phpzend-framework-empty-table#p7798</guid>
        	        	<description><![CDATA[<p>This is working for me:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6166' value='Select Code' data-codeid='sfcode6166' /></p>
<div class='sfcode' id='sfcode6166'>
<p>public function indexAction() {</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160; $response-&#62;page = 1;<br />&#160;&#160; &#160;&#160;&#160;&#160; $response-&#62;total = 4;<br />&#160;&#160; &#160;&#160;&#160;&#160; $response-&#62;records = 22;<br />&#160;&#160; &#160;&#160;&#160;&#160; $response-&#62;rows = array(<br />&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; array("id" =&#62; 1, "cell" =&#62; array("Quantum of Solace","Marc Forster","2008","Daniel Craig","200")),<br />&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; array("id" =&#62; 2, "cell" =&#62; array("Casino Royale","Martin Campbell","2006","Daniel Craig","150")),<br />&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; array("id" =&#62; 3, "cell" =&#62; array("Die Another Day","Lee Tamahori","2002","Pierce Brosnan","142")));<br />&#160;&#160; &#160;&#160;&#160;&#160; <br />&#160;&#160; &#160;&#160;&#160;&#160; $this-&#62;_helper-&#62;json($response);</p>
<p>}</p>
</div>
]]></description>
        	        	<pubDate>Mon, 13 Jul 2009 15:18:28 +0300</pubDate>
        </item>
        <item>
        	<title>saltcreep on JSON Format with PHP/Zend Framework = empty table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/json-format-with-phpzend-framework-empty-table#p7745</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/json-format-with-phpzend-framework-empty-table#p7745</guid>
        	        	<description><![CDATA[<p>I&#39;ve noticed more differences between my working version and what is being returned&#8230;</p>
</p>
<p>Actually, a lot of differences, including quotations, brackets, etc&#8230;. I&#39;m going to punt and try xml or build the json string manually.</p>
<p>Just thought I would mention it if anyone else decides to try JSON with the Zend Framework &#38; JQGrid.</p></p>
]]></description>
        	        	<pubDate>Thu, 09 Jul 2009 16:24:21 +0300</pubDate>
        </item>
        <item>
        	<title>saltcreep on JSON Format with PHP/Zend Framework = empty table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/json-format-with-phpzend-framework-empty-table#p7743</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/json-format-with-phpzend-framework-empty-table#p7743</guid>
        	        	<description><![CDATA[<p>I have been fighting the JSON monster all mornin and I&#39;m afraid he&#39;s winning, I can not figure away around this to get JQGrid working.</p>
<p>I&#39;m using the JSON with Zend Framework, I don&#39;t see where any options can be specified when you call the encoding function.&#160; I&#39;ve also tried a different version of JSON.php as well.&#160; I&#39;m getting curly brackets ({}&#39;s) instead of the other brackets ([]&#39;s) to outline the rows section.. JQGrid does not render anything with these type of brackets&#8230; Any ideas would be very much appreciated on a way to work around this.</p>
<p>Thanks, Brandon</p>
</p>
<p><strong>Does not work.. this is what the PHP JSON RETURNS</strong></p>
<p>{&#8221;page&#8221;:1,&#8221;total&#8221;:4,&#8221;records&#8221;:323,<br />&#8220;rows&#8221;:<strong><span style="color: #ff6600;">{</span></strong><br /> &#8220;1&#8243;:{&#8221;id&#8221;:&#8221;0000020003&#8243;,&#8221;cell&#8221;:["0000020003","username-1"]},</p>
<p>&#8220;2&#8243;:{&#8221;id&#8221;:&#8221;0000020003&#8243;,&#8221;cell&#8221;:["0000020004","username-2"]}</p>
<p><span style="color: #ff6600;"><strong>}</strong></span>}</p>
</p>
<p><strong>This works </strong></p>
<p>{&#8221;page&#8221;:1,&#8221;total&#8221;:4,&#8221;records&#8221;:323,<br />&#8220;rows&#8221;:<strong><span style="color: #ff6600;">[</span></strong><br /> "1":{"id":"0000020003","cell":["0000020003","username-1"]},</p>
<p>&#8220;2&#8243;:{&#8221;id&#8221;:&#8221;0000020003&#8243;,&#8221;cell&#8221;:["0000020004","username-2"]}</p>
<p><span style="color: #ff6600;"><strong>]</strong></span>}</p></p>
]]></description>
        	        	<pubDate>Thu, 09 Jul 2009 15:52:45 +0300</pubDate>
        </item>
</channel>
</rss>