Possibly gives me some ideas, thanks for your post. What I am actually doing is working on an ACL management plugin. I'm making an Ajax call where I have the aco_id, and need to get back the assigned Aro's (including the associated Group or User name ) and its permissions.
Think of a explorer treeview - tree of Aco's in the left payne, top right payne with the assigned Aro's and permissions, bottom right payne acts a little like windows folders. Click on an Aco in the left payne, right top payne gets populated with assigned Aros and Permissions. I have worked out I can acheive this by making 2 seperate model calls in the controller method, and then hacking the returned arrays together - but its a bit messy and has extra queries that I should be able to get in to one query. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---