我有喜歡的領域表:
EMPID,empname,empcode,部門標識...
CakePHP的獲得自我的hasMany陣列
我需要一個像
[產品型號]
陣列--- ---- [department_id 1]
-------------- [0]
------------------- - [empid]
-------------------- [empname]
-------------------- [empcode]
-------------- [1]
--- ----------------- [empid]
-------------------- [empname]
--- ----------------- [empcode]
-------------- [2]
------- ------------- [empid]
-------------------- [empname]
------- ------------- [empcode]
------- [department_id 2]
-------------- [0]
-------------- ------ [empid]
-------------------- [empname]
-------------- ------ [empcode]
-------------- [1]
------------------ - [empid]
-------------------- [empname]
------------------ - [empcode]
-------------- [2]
-------------------- [empid]
----- --------------- [empname]
-------------------- [empcode]
--- ---- [department_id 3]
-------------- [0]
------------------- - [empid]
-------------------- [empname]
------------------- - [empcode]
-------------- [1]
-------------------- [empid]
-------------------- [empname]
-------------------- [empcode]
問候,
你是說你有一個表這四個領域? – Sunny 2010-06-08 09:27:34