What I do, Jeremy, is create a filter CFC that deals with the filter
parameters and has logic around those parameters.

Here is a Filter: http://modelglue.pastebin.com/m5d44d427
Here is a model component using the filter:
http://modelglue.pastebin.com/m256f5b82
Here is a view that uses the same filter:
http://modelglue.pastebin.com/m345e7297



So, that object becomes the central point for the filter criteria and any
logic that is based off that filter criteria.


DW



On Fri, Jan 15, 2010 at 3:04 PM, Jeremy Rottman <[email protected]> wrote:

> In a section of an app I am writing, I am doing various bits of
> filtering based on url query strings.
>
> For example: www.mysite.com/?event=page.index&show=1 would show all
> the received items.
>
> I have other various query strings that I need to take into account
> for. Is there a standardized way to use the value of a query string
> into the method called in my controller?
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>



-- 
“Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew.”

Guillaume Apollinaire quotes
-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to