> But it'd be better to filter on section_id in the controller to begin with . Indeed, this much logic in the view - even if it is presentation logic, more or less - is clearly undesirable!
Imho, Darkman, it'd be better to change this ASAP so that index takes an optional parameter for the sections to display, which has an appropriate default value, i.e 1, something like: index($displayCat=1) Remember to include some kind of flag value for showing all categories. Then you only retrieve the rows from the DB you actually need, and your view will work fine without knowing anything about which rows it's displaying, and be a lot simpler and clearer because of it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
