Friday, September 10, 2010

One index with a lot of parameters or seperated ones?

Hi,

assuming i have a model "player" and i want to show all players of
different "scopes".
For example all players of one state, one club or one country. What is
the best solution for this problem?
One index a la index($club_id = null, $country_id = null, $state_id =
null, $city_id) or it is a better way to seperate this scopes
logically.
For example: index_by_location($country_id = null, $state_id = null,
$city_id) and index_by_club ($club_id = null) etc.
One index with a lot of parameters or different ones for different
scopes? Or a completely different solution that would be...

Thanks :)

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate