Hi eDevil, eDevil wrote: > thanks but how do I get the values loaded in a string? > > I tried $user['Group']['id'] but it says invalid index 'Group'.
This would be much easier to discuss on the irc (you can access it from here: http://irc.cakephp.org/irc.html) What do you see on the screen with the code (DEBUG=2): $user = $this->User->findByUsername($this->data['User']['username']); put pr ($user); die; and what is the executed sql. Given it's a HABTM relationship, $user['Group']['id'] definitely won't exist $user['Group'][number]['id'] will If and only if the relationship is defined correctly :) Cheers, AD7six --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
