To work this, start at the top and work your way down through the array: $this->data['Port'][0]['HardwareUnit']['schenker_number']
Jeremy Burns [email protected] On 24 Mar 2010, at 14:25, sebb86 wrote: > cricket > > Again... thanks a lot for your help. > > It seems to work. When i debug, i get this: > > ================== > Array > ( > [Port] => Array > ( > [id] => 1 > [hardware_unit_id] => 1 > [vlan_id] => 1 > [port_employment_group_id] => 3 > [uplink_id] => > [active] => 1 > [port_name] => 24 > [port_index] => 0x22 > [status] => 1 > [duplex] => 10 > [speed] => 100 > [last_update] => 2009-03-12 11:30:21 > [0] => Array > ( > [id] => 3 > [hardware_unit_id] => 3 > [vlan_id] => 2 > [port_employment_group_id] => 3 > [uplink_id] => 1 > [active] => 0 > [port_name] => 28 > [port_index] => 0x26 > [status] => 1 > [duplex] => 10 > [speed] => 100 > [last_update] => 2009-03-12 11:30:21 > [HardwareUnit] => Array > ( > [id] => 3 > [staff_id] => 3 > [room_id] => 3 > [hardware_group_id] => 9 > [hardware_type_id] => 2 > [schenker_number] => 522 > [active] => 1 > [receptacle_port] => > [serial_number] => 4gsd153-dg1253-6g351 > [ip] => > [user_login] => > [purchase_date] => 2010-03-24 > [support_end] => > [leasing_end] => > [additional_info] => das ist der > zusatztext monitor > ) > =================== > > Could you help me to find out the code to retrieve "schenker_number" > in the last part? > Currently i retrieve this way (in my view): > [code inside a foreach loop] > <td style="text-align:left"><?php echo $port['Port']['uplink_id']; ?></ > td> > [/code] > > 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 [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 > > 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. 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 [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 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.
