0
即時通訊使用蛋糕2.0和即時通訊嘗試打印出下列在我看來。即用戶的朋友,我不知道如何打印出來。即時通訊使用HABTM關係,它似乎正在工作。印刷HABTM結果
控制器發送一個名爲「$用戶」變量的看法,但我似乎無法得到它打印出正確(IM與PHP數組的不是太familar)
誰能幫助我($用戶的調試)
Array
(
[0] => Array
(
[User] => Array
(
[id] => 104
[username] => admin
)
[Friend] => Array
(
[0] => Array
(
[id] => 107
[username] => carskitchens
[Retailerrelationship] => Array
(
[id] => 12
[retailer_id] => 104
[supplier_id] => 107
[created] => 2012-03-28 10:14:23
[modified] => 2012-03-28 10:14:23
)
)
[1] => Array
(
[id] => 112
[username] => manufacturer
[Retailerrelationship] => Array
(
[id] => 13
[retailer_id] => 104
[supplier_id] => 112
[created] => 2012-03-28 11:26:52
[modified] => 2012-03-28 11:26:52
)
)
)
)
)
感謝您的快速回復 – 2012-03-28 11:15:25