Re: Best way to implement a filter?

2010-07-05 Thread Charles Bueche
 Oops, José answered my question on 3.7, so his filter is now supposed
to work with 1.3. Will test soon.


On 7/5/10 9:47, Charles Bueche wrote:
>  Is Jose's filter now functional with Cake 1.3 ?
> The doc says it's updated, but I had trouble with it.
>
> ON my side, I had success with
> http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/
> (works on 1.3)
>
> Charles
>
> On 7/3/10 17:12, red wrote:
>> Check this filter plugin:
>> http://github.com/josegonzalez/cakephp-filter-plugin
>>
>>
>>
>> On 2 Lip, 23:40, Aircule  wrote:
>>> Hi,
>>>
>>> I have a model with many fields and many records in the database. To
>>> avoid clutter, I want users to be able to apply some filters when
>>> viewing all records (ie: model->index()). Let's say I have a model
>>> "Song":
>>>
>>> id, (fk) artist_id, name, (fk) genre_id, (fk) album_id, (boolean)
>>> has_lyrics
>>>
>>> The index page should have filters like: a checkbox (has lyrics?),
>>> dropdown lists (artists, genres, etc.) and the user should be able to
>>> use these filters in conjunction (ie: has lyrics and genre=rock).
>>>
>>> I know 99% of this could be done with the WHERE clause.
>>> But what is the best way to do it in Cake, without breaking Paginator
>>> support?
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Best way to implement a filter?

2010-07-05 Thread Charles Bueche
 Is Jose's filter now functional with Cake 1.3 ?
The doc says it's updated, but I had trouble with it.

ON my side, I had success with
http://blog.uplevel.pl/index.php/2008/06/cakephp-12-filter-component/
(works on 1.3)

Charles

On 7/3/10 17:12, red wrote:
> Check this filter plugin:
> http://github.com/josegonzalez/cakephp-filter-plugin
>
>
>
> On 2 Lip, 23:40, Aircule  wrote:
>> Hi,
>>
>> I have a model with many fields and many records in the database. To
>> avoid clutter, I want users to be able to apply some filters when
>> viewing all records (ie: model->index()). Let's say I have a model
>> "Song":
>>
>> id, (fk) artist_id, name, (fk) genre_id, (fk) album_id, (boolean)
>> has_lyrics
>>
>> The index page should have filters like: a checkbox (has lyrics?),
>> dropdown lists (artists, genres, etc.) and the user should be able to
>> use these filters in conjunction (ie: has lyrics and genre=rock).
>>
>> I know 99% of this could be done with the WHERE clause.
>> But what is the best way to do it in Cake, without breaking Paginator
>> support?
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Best way to implement a filter?

2010-07-03 Thread red
Check this filter plugin:
http://github.com/josegonzalez/cakephp-filter-plugin



On 2 Lip, 23:40, Aircule  wrote:
> Hi,
>
> I have a model with many fields and many records in the database. To
> avoid clutter, I want users to be able to apply some filters when
> viewing all records (ie: model->index()). Let's say I have a model
> "Song":
>
> id, (fk) artist_id, name, (fk) genre_id, (fk) album_id, (boolean)
> has_lyrics
>
> The index page should have filters like: a checkbox (has lyrics?),
> dropdown lists (artists, genres, etc.) and the user should be able to
> use these filters in conjunction (ie: has lyrics and genre=rock).
>
> I know 99% of this could be done with the WHERE clause.
> But what is the best way to do it in Cake, without breaking Paginator
> support?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Best way to implement a filter?

2010-07-03 Thread Aircule
Hi,

I have a model with many fields and many records in the database. To
avoid clutter, I want users to be able to apply some filters when
viewing all records (ie: model->index()). Let's say I have a model
"Song":

id, (fk) artist_id, name, (fk) genre_id, (fk) album_id, (boolean)
has_lyrics

The index page should have filters like: a checkbox (has lyrics?),
dropdown lists (artists, genres, etc.) and the user should be able to
use these filters in conjunction (ie: has lyrics and genre=rock).

I know 99% of this could be done with the WHERE clause.
But what is the best way to do it in Cake, without breaking Paginator
support?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en