$data = $this->Model->find("all", array(
"conditions"=>array(
"RelatedModel.field"=>$value
)
));? On May 20, 7:55 pm, programguru <[email protected]> wrote: > My situation is simple, but I have yet to find a solution that actually does > what I need. > > And I am not sure at what level the data requirements should be applied. > > The simplicity of what I am trying to achieve is: > > In my index of main records, I only want to display records that have a > specific criteria in one record field that is related. The record field I > need is currently displayed fine in my foreach, but I need to ONLY display > records meeting a specific requirement of my record field. > > I assume this is something that could be applied through model, but it seems > it would be more simple to process it through the controller level. > > Does anyone have any ideas or suggestions as to how I can effectively > address my problem? > -- > View this message in > context:http://www.nabble.com/displaying-records-in-index-through-specific-fi... > Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
