<?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>Comments on: Cakephp 1.2 Filter Component</title>
	<atom:link href="http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/</link>
	<description>Webware and Rich Internet Applications</description>
	<pubDate>Thu, 29 Jul 2010 12:16:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Dimitry</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-297</link>
		<dc:creator>Dimitry</dc:creator>
		<pubDate>Tue, 08 Jun 2010 10:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-297</guid>
		<description>What should be written in the index() in the Controller if I have belongsTo Model? 
 
For example I have a model  
class A extends AppModel { 
        var $name = &#039;A&#039;; 
        var $belongsTo =  array( 
                                 &#039;B&#039; =&#62; array( 
                                 &#039;className&#039; =&#62; &#039;B&#039;, 
                                 &#039;foreignKey&#039; =&#62; &#039;b_id&#039; 
                                ) 
        ); 
} 
 
In the controller I try 
$filter = $this-&#62;Filter-&#62;process($this, array(&#039;id&#039;,&#039;b_id&#039;)); 
 
index.ctp: 
&#60;?php echo $this-&#62;Form-&#62;create(&#039;A&#039;,array(&#039;url&#039;=&#62;array(&#039;action&#039;=&#62;&#039;index&#039;)));?&#62; 
&#60;?php echo $this-&#62;Form-&#62;input(&#039;id&#039;);?&#62; 
&#60;?php echo $this-&#62;Form-&#62;input(&#039;b_id&#039;);?&#62; 
&#60;?php echo $this-&#62;Form-&#62;end(&#039;Search&#039;);?&#62; 
... 
 
I get my combobox for b_id and wait for values in the combobox but there is nothing there. 
 
 </description>
		<content:encoded><![CDATA[<p>What should be written in the index() in the Controller if I have belongsTo Model? </p>
<p>For example I have a model<br />
class A extends AppModel {<br />
        var $name = &#039;A&#039;;<br />
        var $belongsTo =  array(<br />
                                 &#039;B&#039; =&gt; array(<br />
                                 &#039;className&#039; =&gt; &#039;B&#039;,<br />
                                 &#039;foreignKey&#039; =&gt; &#039;b_id&#039;<br />
                                )<br />
        );<br />
} </p>
<p>In the controller I try<br />
$filter = $this-&gt;Filter-&gt;process($this, array(&#039;id&#039;,&#039;b_id&#039;)); </p>
<p>index.ctp:<br />
&lt;?php echo $this-&gt;Form-&gt;create(&#039;A&#039;,array(&#039;url&#039;=&gt;array(&#039;action&#039;=&gt;&#039;index&#039;)));?&gt;<br />
&lt;?php echo $this-&gt;Form-&gt;input(&#039;id&#039;);?&gt;<br />
&lt;?php echo $this-&gt;Form-&gt;input(&#039;b_id&#039;);?&gt;<br />
&lt;?php echo $this-&gt;Form-&gt;end(&#039;Search&#039;);?&gt;<br />
&#8230; </p>
<p>I get my combobox for b_id and wait for values in the combobox but there is nothing there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: benizra</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-289</link>
		<dc:creator>benizra</dc:creator>
		<pubDate>Mon, 26 Apr 2010 23:44:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-289</guid>
		<description>Thank you for this code. I made it work! </description>
		<content:encoded><![CDATA[<p>Thank you for this code. I made it work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-285</link>
		<dc:creator>Maria</dc:creator>
		<pubDate>Wed, 27 Jan 2010 12:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-285</guid>
		<description>is it possible that somebode makes the option complete : 
var $options = array(); 
 
i cant do it by myself. Please! </description>
		<content:encoded><![CDATA[<p>is it possible that somebode makes the option complete :<br />
var $options = array(); </p>
<p>i cant do it by myself. Please!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maciej Grajcarek</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-134</link>
		<dc:creator>Maciej Grajcarek</dc:creator>
		<pubDate>Wed, 05 Nov 2008 15:08:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-134</guid>
		<description>I don't have much time right now (work + studies = no much free time). Maybe if I will need this feature in the future where will be a next realese. 
Right now, fill free to upgrade it yourself ;D</description>
		<content:encoded><![CDATA[<p>I don&#8217;t have much time right now (work + studies = no much free time). Maybe if I will need this feature in the future where will be a next realese.<br />
Right now, fill free to upgrade it yourself ;D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanny</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-133</link>
		<dc:creator>tanny</dc:creator>
		<pubDate>Thu, 30 Oct 2008 00:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-133</guid>
		<description>Thanks for the component!

When would the nested search behavior of your component be available? It would be very helpful if you could add this functionality to your component.</description>
		<content:encoded><![CDATA[<p>Thanks for the component!</p>
<p>When would the nested search behavior of your component be available? It would be very helpful if you could add this functionality to your component.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-130</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 10 Oct 2008 14:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-130</guid>
		<description>Thanks for the very handy component. 

I have a table with 3 fields I would like to search in; username, name and email. Is it possible to generate a query something like "(name like %blah% OR username like %blah% OR email like %blah%) AND whateverelse = something" using your filter component? Obviously it is quite easy to generate ANDs.</description>
		<content:encoded><![CDATA[<p>Thanks for the very handy component. </p>
<p>I have a table with 3 fields I would like to search in; username, name and email. Is it possible to generate a query something like &#8220;(name like %blah% OR username like %blah% OR email like %blah%) AND whateverelse = something&#8221; using your filter component? Obviously it is quite easy to generate ANDs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maciej Grajcarek</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-128</link>
		<dc:creator>Maciej Grajcarek</dc:creator>
		<pubDate>Thu, 25 Sep 2008 13:32:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-128</guid>
		<description>For this moment - no :(. Only current model and belongsTo models can be filtered.</description>
		<content:encoded><![CDATA[<p>For this moment - no :(. Only current model and belongsTo models can be filtered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giovanni</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-127</link>
		<dc:creator>Giovanni</dc:creator>
		<pubDate>Mon, 22 Sep 2008 20:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-127</guid>
		<description>very good component!! just what i needed, but i'm having some problems, im doing the pagination with the containable behavior, and im unable to filter the deeper nested models, just the first lvl 

var $paginate = array('limit'=&#62;'20','contain'=&#62;array(
					'ConfEstadorma'=&#62;array('fields'=&#62;array('title')),
					'ConfEstadormaprov'=&#62;array('fields'=&#62;array('title')),
					'LnRmamensaje'=&#62;array('fields'=&#62;array('mensaje')),
					'LnInstanciaproducto'=&#62;array('fields'=&#62;array('id','serial'),
						'AbmProducto'=&#62;array('fields'=&#62;array('title','orden'))
					)
				));


i cant get to  LnInstanciaproducto.AbmProducto.title

LnInstanciaproducto.serial works fine...

is there a way to get it working??</description>
		<content:encoded><![CDATA[<p>very good component!! just what i needed, but i&#8217;m having some problems, im doing the pagination with the containable behavior, and im unable to filter the deeper nested models, just the first lvl </p>
<p>var $paginate = array(&#8217;limit&#8217;=&gt;&#8217;20&#8242;,&#8217;contain&#8217;=&gt;array(<br />
					&#8216;ConfEstadorma&#8217;=&gt;array(&#8217;fields&#8217;=&gt;array(&#8217;title&#8217;)),<br />
					&#8216;ConfEstadormaprov&#8217;=&gt;array(&#8217;fields&#8217;=&gt;array(&#8217;title&#8217;)),<br />
					&#8216;LnRmamensaje&#8217;=&gt;array(&#8217;fields&#8217;=&gt;array(&#8217;mensaje&#8217;)),<br />
					&#8216;LnInstanciaproducto&#8217;=&gt;array(&#8217;fields&#8217;=&gt;array(&#8217;id&#8217;,&#8217;serial&#8217;),<br />
						&#8216;AbmProducto&#8217;=&gt;array(&#8217;fields&#8217;=&gt;array(&#8217;title&#8217;,'orden&#8217;))<br />
					)<br />
				));</p>
<p>i cant get to  LnInstanciaproducto.AbmProducto.title</p>
<p>LnInstanciaproducto.serial works fine&#8230;</p>
<p>is there a way to get it working??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renan Gonçalves</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-123</link>
		<dc:creator>Renan Gonçalves</dc:creator>
		<pubDate>Wed, 27 Aug 2008 14:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-123</guid>
		<description>@Bhupinder Singh
Checkout SQL syntax.
You may use: "CAST(`Video`.`create` AS date) = '2007-10-28'


Best Regards,
Renan Gonçalves
CakePHP Tests Engineer</description>
		<content:encoded><![CDATA[<p>@Bhupinder Singh<br />
Checkout SQL syntax.<br />
You may use: &#8220;CAST(`Video`.`create` AS date) = &#8216;2007-10-28&#8242;</p>
<p>Best Regards,<br />
Renan Gonçalves<br />
CakePHP Tests Engineer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhupinder Singh</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-118</link>
		<dc:creator>Bhupinder Singh</dc:creator>
		<pubDate>Wed, 20 Aug 2008 16:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-118</guid>
		<description>You have made a very good component. But there is a problem with 'datetime' fields. If I enter a value like '2007-10-28' into a field which is having type 'datetime' it outputs the query something like "`Video`.`created` = '2007&#45;10&#45;28' "

It should be something like "date(`Video`.`created`) = '2007-10-28' "

Is it possible ?</description>
		<content:encoded><![CDATA[<p>You have made a very good component. But there is a problem with &#8216;datetime&#8217; fields. If I enter a value like &#8216;2007-10-28&#8242; into a field which is having type &#8216;datetime&#8217; it outputs the query something like &#8220;`Video`.`created` = &#8216;2007&#45;10&#45;28&#8242; &#8221;</p>
<p>It should be something like &#8220;date(`Video`.`created`) = &#8216;2007-10-28&#8242; &#8221;</p>
<p>Is it possible ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maciej Grajcarek</title>
		<link>http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/#comment-109</link>
		<dc:creator>Maciej Grajcarek</dc:creator>
		<pubDate>Mon, 18 Aug 2008 09:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.uplevel.pl/?p=39#comment-109</guid>
		<description>Hi Matt. I was on holidays and I have just read your comments. Of course your approach is the simple one. Thanks for advise! What about customizations... I'll do my best, but I don't know when. I have to finish few projects, but I'll do my best in a free time. 
Cheers!</description>
		<content:encoded><![CDATA[<p>Hi Matt. I was on holidays and I have just read your comments. Of course your approach is the simple one. Thanks for advise! What about customizations&#8230; I&#8217;ll do my best, but I don&#8217;t know when. I have to finish few projects, but I&#8217;ll do my best in a free time.<br />
Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
