$this->Inventory->find('all', array(
'contain' => array(
'Profile',
'Item'
)
));
The above assumes Inventory is associated with Profile and Item (you didn't give us the relationships).
-jeremy
-- 1: http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html
On Monday, May 28, 2012 11:25:57 PM UTC-7, ying yang wrote:
On Monday, May 28, 2012 11:25:57 PM UTC-7, ying yang wrote:
i'm a new here in cakephp i have some trouble in relationship with
profile , item and inventory
i want to see in the view table of inventory is all the list of item
and info that profile has. ex.
yang
27
thailand
acer laptop
mouse
keyboard
_______________
remarks
________________
like that anyone can help me? thanks
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment