On Mar 24, 11:57 am, sebb86 <kahlc...@googlemail.com> wrote: > Jeremy > > Thanks! :) That works. > > But now, i thought i was ready.... i noticed another problem. > The debug output above is for a port, which has no value in the field > "uplink_id". But the port with "id" -> 3 has value 1 in "uplink_id". > So port with id 3 points to port with id 1. > Now, the problem is, that i need the "hardware_unit" in the table cell > with the "uplink_id" (in my example port with id 3), not in the cell > to which points this "uplink_id" (in my example port with id 1). > > Any ideas? > > [view retrieve code] > <td> <?php echo $port['Port']['uplink_id']; ?> > <?php if ($port['Port']['uplink_id'] != NULL) { ?> <?php echo > "("; echo $port['Port']['0']['HardwareUnit']['schenker_number']; echo > ")"; } ?></td> > [/code] > > i despair of this problem :(
That doesn't work? It looks as though it should. Maybe I'm misunderstanding your question. But I don't understand why there's an array key 0. It should be 'PortUplink', I think. What was the exact find() you used? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.