Lector,

Yes. This does help. But my confusion lies in how specifically I update my
foreach loop based on this new controller var.

I don't understand what you meant by "fail" below either. I am certainly not
using "Containable".

$data = $this->Task->find
        ('all', array ('contain' => array('Status'),
'conditions'=>array('Status.name' => $yesValue)
                )
        );

I updated the above code with what I believe is correct for my use based on
your notes.

My taskstable is associated to the statusestable (and association is working
perfect). statuses table has "name" col.

Does the above code belong in my task_controller ? And in order to generate
this query in my view, what data do I use for the foreach? I am currently
using this format:

foreach ($tasks as $task): ....

and accessing each like so: ... $task['Task']['description'] ...

---

Thanks in advance for any advice on this... I've been banging my head over
this in the cake "help" area and a Cake book I've been reading, and can't
seem to revolve it..




-- 
View this message in context: 
http://www.nabble.com/displaying-records-in-index-through-specific-field-criteria-tp23641397p23661732.html
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to