<?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: Filtering component for your tables</title>
	<atom:link href="http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/</link>
	<description>Technical weblog for articles and titorials related to web development.</description>
	<lastBuildDate>Fri, 12 Mar 2010 18:19:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: videoiizle</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-7790</link>
		<dc:creator>videoiizle</dc:creator>
		<pubDate>Sat, 13 Feb 2010 04:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-7790</guid>
		<description>I built a reporting system… It’s quite different. It does not use sessions, however I do need to 

http://www.turkyoutube.org/populer.php</description>
		<content:encoded><![CDATA[<p>I built a reporting system… It’s quite different. It does not use sessions, however I do need to </p>
<p><a href="http://www.turkyoutube.org/populer.php" rel="nofollow">http://www.turkyoutube.org/populer.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rc controller</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-609</link>
		<dc:creator>rc controller</dc:creator>
		<pubDate>Sat, 14 Feb 2009 08:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-609</guid>
		<description>&lt;strong&gt;rc controller...&lt;/strong&gt;

I have been searching for sites have content related to radio control racing hobbies to tell them about the Engine Analysis Software for tuning all Nitro RC Engines....</description>
		<content:encoded><![CDATA[<p><strong>rc controller&#8230;</strong></p>
<p>I have been searching for sites have content related to radio control racing hobbies to tell them about the Engine Analysis Software for tuning all Nitro RC Engines&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dooltaz</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-411</link>
		<dc:creator>Dooltaz</dc:creator>
		<pubDate>Fri, 14 Nov 2008 23:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-411</guid>
		<description>I built a reporting system... It&#039;s quite different. It does not use sessions, however I do need to rewrite and optimize it for the changes in RC3..

https://sites.google.com/a/esninteractive.com/cakephp-documentation/extensions/cake-reporting-filtering-extension

-d</description>
		<content:encoded><![CDATA[<p>I built a reporting system&#8230; It&#8217;s quite different. It does not use sessions, however I do need to rewrite and optimize it for the changes in RC3..</p>
<p><a href="https://sites.google.com/a/esninteractive.com/cakephp-documentation/extensions/cake-reporting-filtering-extension" rel="nofollow">https://sites.google.com/a/esninteractive.com/cakephp-documentation/extensions/cake-reporting-filtering-extension</a></p>
<p>-d</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik Chankov</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-399</link>
		<dc:creator>Nik Chankov</dc:creator>
		<pubDate>Sat, 08 Nov 2008 14:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-399</guid>
		<description>Johnny, 
Clearing the filter is simply submit an empty form. If the form has values in the text fields you need to go and manually delete their values. Of course if you have a javascript function attached to onclick event to a button could reset them very easy.

Here is a simple example with 2 text fields could be:

&lt;code lang=&quot;javascript&quot;&gt;
function clean(form){
       document.getElementById(&#039;field1&#039;).value = &#039;&#039;;
       document.getElementById(&#039;field2&#039;).value = &#039;&#039;;
       form.submit();
}
&lt;/code&gt;

after this you attach this onclick event like:

&lt;code lang=&quot;html&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;clear&quot; value=&quot;Clear form&quot; onclick=&quot;clean(this.form)&quot; /&gt;&lt;/code&gt;

Of course, it could be more elegant and common including reset of select etc, but this one is a quick and dirty example.</description>
		<content:encoded><![CDATA[<p>Johnny,<br />
Clearing the filter is simply submit an empty form. If the form has values in the text fields you need to go and manually delete their values. Of course if you have a javascript function attached to onclick event to a button could reset them very easy.</p>
<p>Here is a simple example with 2 text fields could be:</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span> clean<span style="color: #009900;">&#40;</span>form<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'field1'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'field2'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;form.<span style="color: #660066;">submit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>after this you attach this onclick event like:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clear&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Clear form&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clean(this.form)&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></div>
<p>Of course, it could be more elegant and common including reset of select etc, but this one is a quick and dirty example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny Hughes</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-398</link>
		<dc:creator>Johnny Hughes</dc:creator>
		<pubDate>Sat, 08 Nov 2008 13:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-398</guid>
		<description>Nik, You said this:

&#039;That’s it now your filter forms will keep the values until you delete them or set a specific JavaScript function which would be “clear all fields and submit” - I leave it to your imagination&#039;

BUT, my imagination is NOT very GOOD :D

Can you (or someone) post some code that will reset the session variables (or another way) to remove the filter that can be assigned to a separate button.</description>
		<content:encoded><![CDATA[<p>Nik, You said this:</p>
<p>&#8216;That’s it now your filter forms will keep the values until you delete them or set a specific JavaScript function which would be “clear all fields and submit” &#8211; I leave it to your imagination&#8217;</p>
<p>BUT, my imagination is NOT very GOOD <img src='http://nik.chankov.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Can you (or someone) post some code that will reset the session variables (or another way) to remove the filter that can be assigned to a separate button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brenton</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-336</link>
		<dc:creator>Brenton</dc:creator>
		<pubDate>Fri, 10 Oct 2008 20:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-336</guid>
		<description>@Chris,

Except it doesn&#039;t retain the current controller model&#039;s fields ... if the current controller is dealing with ModelA that has an association to ModelB ... your code seems to setup ModelB&#039;s stuff, but forgets about ModelA&#039;s.</description>
		<content:encoded><![CDATA[<p>@Chris,</p>
<p>Except it doesn&#8217;t retain the current controller model&#8217;s fields &#8230; if the current controller is dealing with ModelA that has an association to ModelB &#8230; your code seems to setup ModelB&#8217;s stuff, but forgets about ModelA&#8217;s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brenton</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-332</link>
		<dc:creator>Brenton</dc:creator>
		<pubDate>Wed, 08 Oct 2008 19:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-332</guid>
		<description>Not returning correct result. Due to `$fieldFormatting` has &quot;LIKE&quot; defined in it, then again in `process()`:

$ret[$key.&#039;.&#039;.$k .&#039; LIKE &#039;] = sprintf($this-&gt;fieldFormatting[$columns[$k]], $v);

So the resulting query is (in my example):
WHERE `Photographer`.`first_name` LIKE &#039;LIKE Bre%&#039;

Yeah, that&#039;s wrong ... 

Small, easy fix.</description>
		<content:encoded><![CDATA[<p>Not returning correct result. Due to `$fieldFormatting` has &#8220;LIKE&#8221; defined in it, then again in `process()`:</p>
<p>$ret[$key.'.'.$k .' LIKE '] = sprintf($this-&gt;fieldFormatting[$columns[$k]], $v);</p>
<p>So the resulting query is (in my example):<br />
WHERE `Photographer`.`first_name` LIKE &#8216;LIKE Bre%&#8217;</p>
<p>Yeah, that&#8217;s wrong &#8230; </p>
<p>Small, easy fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik Chankov</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-196</link>
		<dc:creator>Nik Chankov</dc:creator>
		<pubDate>Thu, 26 Jun 2008 19:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-196</guid>
		<description>@Stefano - thanks! I haven&#039;t used this component with 1.2RC so far. I will change in the core right now. :)</description>
		<content:encoded><![CDATA[<p>@Stefano &#8211; thanks! I haven&#8217;t used this component with 1.2RC so far. I will change in the core right now. <img src='http://nik.chankov.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefano Manfredini</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-195</link>
		<dc:creator>Stefano Manfredini</dc:creator>
		<pubDate>Thu, 26 Jun 2008 14:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-195</guid>
		<description>Just a tiny change to let the component work with cake 1.2 RC - (move the operator to the &quot;key&quot; side)

&lt;code lang=&quot;php&quot;&gt;
    function process($controller){
        $this-&gt;_prepareFilter($controller);
        $ret = array();
        if(isset($controller-&gt;data)){
            //Loop for models
            foreach($controller-&gt;data as $key=&gt;$value){
                if(isset($controller-&gt;{$key})){
                    $columns = $controller-&gt;{$key}-&gt;getColumnTypes();
                    foreach($value as $k=&gt;$v){
                        if($v != &#039;&#039;){
                            //Check if there are some fieldFormatting set
                            if(isset($this-&gt;fieldFormatting[$columns[$k]])){
                                $ret[$key.&#039;.&#039;.$k .&#039; LIKE &#039;] = sprintf($this-&gt;fieldFormatting[$columns[$k]], $v);
                            } else {
                                $ret[$key.&#039;.&#039;.$k .&#039; LIKE &#039;] = $v;
                            }
                        }
                    }
                    //unsetting the empty forms
                    if(count($value) == 0){
                        unset($controller-&gt;data[$key]);
                    }
                }
            }
        }
        return $ret;
    }
&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<p>Just a tiny change to let the component work with cake 1.2 RC &#8211; (move the operator to the &#8220;key&#8221; side)</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">function</span> process<span style="color: #009900;">&#40;</span><span style="color: #000088;">$controller</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>_prepareFilter<span style="color: #009900;">&#40;</span><span style="color: #000088;">$controller</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$ret</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$controller</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//Loop for models</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$controller</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>data <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span><span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$controller</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$columns</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$controller</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getColumnTypes<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$k</span><span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #000088;">$v</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$v</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//Check if there are some fieldFormatting set</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>fieldFormatting<span style="color: #009900;">&#91;</span><span style="color: #000088;">$columns</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$k</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$key</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.'</span><span style="color: #339933;">.</span><span style="color: #000088;">$k</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' LIKE '</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/sprintf"><span style="color: #990000;">sprintf</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>fieldFormatting<span style="color: #009900;">&#91;</span><span style="color: #000088;">$columns</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$k</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$v</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$key</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.'</span><span style="color: #339933;">.</span><span style="color: #000088;">$k</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' LIKE '</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$v</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//unsetting the empty forms</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> 0<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/unset"><span style="color: #990000;">unset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$controller</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>data<span style="color: #009900;">&#91;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$ret</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: hit kazan</title>
		<link>http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/comment-page-1/#comment-193</link>
		<dc:creator>hit kazan</dc:creator>
		<pubDate>Sat, 21 Jun 2008 12:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2008/03/01/filtering-component-for-your-tables/#comment-193</guid>
		<description>thanks youu.</description>
		<content:encoded><![CDATA[<p>thanks youu.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
