<?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>Komentarze do wpisu: Symfony + jQuery Flexigrid</title>
	<atom:link href="http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/</link>
	<description>Kamil Adryjanek - projektowanie aplikacji internetowych</description>
	<pubDate>Tue, 07 Sep 2010 17:35:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Przez: Kamil Adryjanek</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-13771</link>
		<dc:creator>Kamil Adryjanek</dc:creator>
		<pubDate>Mon, 15 Feb 2010 12:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-13771</guid>
		<description>If you create new project - the easiest way is to:
symfony generate:project xxx --orm=Propel
but i would strongly recommend Doctrine/
Cheers</description>
		<content:encoded><![CDATA[<p>If you create new project - the easiest way is to:<br />
symfony generate:project xxx &#8211;orm=Propel<br />
but i would strongly recommend Doctrine/<br />
Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: jennifer</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-13768</link>
		<dc:creator>jennifer</dc:creator>
		<pubDate>Mon, 15 Feb 2010 11:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-13768</guid>
		<description>i have the same problem with symfony 1.4

i have enabled the plugin and configure my project to use propel but when i checked on the available commands, no commands for propel..

why is that?</description>
		<content:encoded><![CDATA[<p>i have the same problem with symfony 1.4</p>
<p>i have enabled the plugin and configure my project to use propel but when i checked on the available commands, no commands for propel..</p>
<p>why is that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Kamil Adryjanek</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-13031</link>
		<dc:creator>Kamil Adryjanek</dc:creator>
		<pubDate>Mon, 25 Jan 2010 15:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-13031</guid>
		<description>Which symfony version are you using? 1.4.X or 1.2.X ?</description>
		<content:encoded><![CDATA[<p>Which symfony version are you using? 1.4.X or 1.2.X ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: ernesto quiogue</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-13030</link>
		<dc:creator>ernesto quiogue</dc:creator>
		<pubDate>Mon, 25 Jan 2010 15:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-13030</guid>
		<description>C:\xampp\htdocs\sf_sandbox&#62;symfony propel:build-sql


  There are no tasks defined in the "propel" namespace.



C:\xampp\htdocs\sf_sandbox&#62;

please advise

thank you</description>
		<content:encoded><![CDATA[<p>C:\xampp\htdocs\sf_sandbox&gt;symfony propel:build-sql</p>
<p>  There are no tasks defined in the &#8220;propel&#8221; namespace.</p>
<p>C:\xampp\htdocs\sf_sandbox&gt;</p>
<p>please advise</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: David Kagiri</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-12606</link>
		<dc:creator>David Kagiri</dc:creator>
		<pubDate>Thu, 14 Jan 2010 12:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-12606</guid>
		<description>Hi.
I have found this tutorial very helpful.
Please mail me the example</description>
		<content:encoded><![CDATA[<p>Hi.<br />
I have found this tutorial very helpful.<br />
Please mail me the example</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Kamil Adryjanek</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-11825</link>
		<dc:creator>Kamil Adryjanek</dc:creator>
		<pubDate>Tue, 29 Dec 2009 20:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-11825</guid>
		<description>We should set up the response but we don't have to. 

Best solution for me is:

$this-&gt;getResponse()-&gt;setHttpHeader(’Content-Type’, ‘application/json; charset=utf-8′);

return $this-&gt;renderText(json_encode(array(
‘page’ =&gt;$currentPage,
‘total’ =&gt;$pager-&gt;getNbResults(),
‘rows’ =&gt;$elements
)));

Calling:
return sfView::NONE;
in this case is not necessary.</description>
		<content:encoded><![CDATA[<p>We should set up the response but we don&#8217;t have to. </p>
<p>Best solution for me is:</p>
<p>$this->getResponse()->setHttpHeader(’Content-Type’, ‘application/json; charset=utf-8′);</p>
<p>return $this->renderText(json_encode(array(<br />
‘page’ =>$currentPage,<br />
‘total’ =>$pager->getNbResults(),<br />
‘rows’ =>$elements<br />
)));</p>
<p>Calling:<br />
return sfView::NONE;<br />
in this case is not necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Carlos Blanco</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-11820</link>
		<dc:creator>Carlos Blanco</dc:creator>
		<pubDate>Tue, 29 Dec 2009 19:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-11820</guid>
		<description>In executeList action You must set up the response:

$this-&#62;getResponse()-&#62;setHttpHeader('Content-Type', 'application/json; charset=utf-8');

And modify: 
 echo json_encode(array(
‘page’ =&#62; $currentPage,
‘total’ =&#62; $pager-&#62;getNbResults(),
‘rows’ =&#62; $elements
));

return sfView::NONE;

with:
$resultado = json_encode(array(
'page'	=&#62;$currentPage,
'total'	=&#62;$pager-&#62;getNbResults(),
'rows'	=&#62;$elements
));

return $this-&#62;renderText('('.$resultado.')');
return sfView::NONE;</description>
		<content:encoded><![CDATA[<p>In executeList action You must set up the response:</p>
<p>$this-&gt;getResponse()-&gt;setHttpHeader(&#8217;Content-Type&#8217;, &#8216;application/json; charset=utf-8&#8242;);</p>
<p>And modify:<br />
 echo json_encode(array(<br />
‘page’ =&gt; $currentPage,<br />
‘total’ =&gt; $pager-&gt;getNbResults(),<br />
‘rows’ =&gt; $elements<br />
));</p>
<p>return sfView::NONE;</p>
<p>with:<br />
$resultado = json_encode(array(<br />
&#8216;page&#8217;	=&gt;$currentPage,<br />
&#8216;total&#8217;	=&gt;$pager-&gt;getNbResults(),<br />
&#8216;rows&#8217;	=&gt;$elements<br />
));</p>
<p>return $this-&gt;renderText(&#8217;(&#8217;.$resultado.&#8217;)');<br />
return sfView::NONE;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Symfony 1.2 i ExtJS - wyswietlamy dane w gridzie &#124; Projektant - Programista PHP, Python</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-9092</link>
		<dc:creator>Symfony 1.2 i ExtJS - wyswietlamy dane w gridzie &#124; Projektant - Programista PHP, Python</dc:creator>
		<pubDate>Wed, 21 Oct 2009 20:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-9092</guid>
		<description>[...] Należy skonfigurować połączenie z bazą danych, utworzyć testowe tabele i wczytać do nich dane testowe. Poniższy kod odpowiada za wymienione powyżej elementy (poniższe dane zostały już wcześnie wykorzystane w tutorialu). [...]</description>
		<content:encoded><![CDATA[<p>[...] Należy skonfigurować połączenie z bazą danych, utworzyć testowe tabele i wczytać do nich dane testowe. Poniższy kod odpowiada za wymienione powyżej elementy (poniższe dane zostały już wcześnie wykorzystane w tutorialu). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Kamil Adryjanek</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-4591</link>
		<dc:creator>Kamil Adryjanek</dc:creator>
		<pubDate>Sun, 28 Jun 2009 21:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-4591</guid>
		<description>Yes, i can fix it. Show me your response from server or just send me your code. I will do my best to help you.

Cheers.</description>
		<content:encoded><![CDATA[<p>Yes, i can fix it. Show me your response from server or just send me your code. I will do my best to help you.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Przez: Riky</title>
		<link>http://blog.adryjanek.eu/2009/02/01/symfony-jquery-flexigrid/#comment-4561</link>
		<dc:creator>Riky</dc:creator>
		<pubDate>Sun, 28 Jun 2009 04:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adryjanek.eu/?p=33#comment-4561</guid>
		<description>Hi, I get a “Processing, please wait …” message never end in my tmplate. I use Propel...
 this my action:

 # forward unless it is ajax request
  		$this-&#62;forward404Unless($request-&#62;isXmlHttpRequest());
		//$this-&#62;getResponse()-&#62;setContentType('application/json');
  		 # Pagination parameters
		$currentPage 	= $request-&#62;getParameter('page', 1);
		$resultsPerPage = $request-&#62;getParameter('rp', 10);

		 # Sort parameters
		$orderBy 		= $request-&#62;getParameter('sortname', 'nama_provinsi');
		$orderType 		= $request-&#62;getParameter('sortorder', 'ASC');

		 # Query parameters
		$query 			= $request-&#62;getParameter('query', '');
		$qtype 			= $request-&#62;getParameter('qtype', 'nama_provinsi');

		 # Creating DbFinder Pager
		$pager = DbFinder::from('RProvinsi')-&#62;
				orderBy($orderBy, $orderType)-&#62;
				paginate($currentPage, $resultsPerPage);
		/* $c= new Criteria();
		$c-&#62;add(RProvinsiPeer::NamaProvinsi,"%$query",Criteria::LIKE);
		($orderType=="ASC")?$c-&#62;addAscendingOrderByColumn ($orderBy):$c-&#62;addDescendingOrderByColumn ($orderBy);
		$c-&#62;setLimit($resultsPerPage);
		$c-&#62;setOffset(($currentPage-1)*$resultsPerPage);
		$pager=RProvinsiPeer::doSelect($c);*/
		$elements = array(); 

		 # Get data from Pager
		foreach($pager-&#62;getResults() as $item){

			$elements[] = array(
							'id'	=&#62;	$item-&#62;getKodeProvinsi(),
							'cell'	=&#62;	array_values($item-&#62;toArray())
							);
		}

		echo json_encode(array(
								'page'	=&#62;	$currentPage,
								'total'	=&#62;	$pager-&#62;getNbResults(),
								'rows'	=&#62;	$elements
								));
		
		 # return action wihout renderig template
		return sfView::NONE;


Can You Fix this??

Poor English</description>
		<content:encoded><![CDATA[<p>Hi, I get a “Processing, please wait …” message never end in my tmplate. I use Propel&#8230;<br />
 this my action:</p>
<p> # forward unless it is ajax request<br />
  		$this-&gt;forward404Unless($request-&gt;isXmlHttpRequest());<br />
		//$this-&gt;getResponse()-&gt;setContentType(&#8217;application/json&#8217;);<br />
  		 # Pagination parameters<br />
		$currentPage 	= $request-&gt;getParameter(&#8217;page&#8217;, 1);<br />
		$resultsPerPage = $request-&gt;getParameter(&#8217;rp&#8217;, 10);</p>
<p>		 # Sort parameters<br />
		$orderBy 		= $request-&gt;getParameter(&#8217;sortname&#8217;, &#8216;nama_provinsi&#8217;);<br />
		$orderType 		= $request-&gt;getParameter(&#8217;sortorder&#8217;, &#8216;ASC&#8217;);</p>
<p>		 # Query parameters<br />
		$query 			= $request-&gt;getParameter(&#8217;query&#8217;, &#8221;);<br />
		$qtype 			= $request-&gt;getParameter(&#8217;qtype&#8217;, &#8216;nama_provinsi&#8217;);</p>
<p>		 # Creating DbFinder Pager<br />
		$pager = DbFinder::from(&#8217;RProvinsi&#8217;)-&gt;<br />
				orderBy($orderBy, $orderType)-&gt;<br />
				paginate($currentPage, $resultsPerPage);<br />
		/* $c= new Criteria();<br />
		$c-&gt;add(RProvinsiPeer::NamaProvinsi,&#8221;%$query&#8221;,Criteria::LIKE);<br />
		($orderType==&#8221;ASC&#8221;)?$c-&gt;addAscendingOrderByColumn ($orderBy):$c-&gt;addDescendingOrderByColumn ($orderBy);<br />
		$c-&gt;setLimit($resultsPerPage);<br />
		$c-&gt;setOffset(($currentPage-1)*$resultsPerPage);<br />
		$pager=RProvinsiPeer::doSelect($c);*/<br />
		$elements = array(); </p>
<p>		 # Get data from Pager<br />
		foreach($pager-&gt;getResults() as $item){</p>
<p>			$elements[] = array(<br />
							&#8216;id&#8217;	=&gt;	$item-&gt;getKodeProvinsi(),<br />
							&#8216;cell&#8217;	=&gt;	array_values($item-&gt;toArray())<br />
							);<br />
		}</p>
<p>		echo json_encode(array(<br />
								&#8216;page&#8217;	=&gt;	$currentPage,<br />
								&#8216;total&#8217;	=&gt;	$pager-&gt;getNbResults(),<br />
								&#8216;rows&#8217;	=&gt;	$elements<br />
								));</p>
<p>		 # return action wihout renderig template<br />
		return sfView::NONE;</p>
<p>Can You Fix this??</p>
<p>Poor English</p>
]]></content:encoded>
	</item>
</channel>
</rss>
