Thanks Amit, I manage to do that,
but I have another problem,... Once user is a member now I need that
"Join" button replaced with "Leave" and I can not make that php
statement.

e.g. <?php if(($favorite['Favorite']['user_id'] ==)): ?> ...? ? ?

the table I have is

        id      int(11)         UNSIGNED        No              auto_increment
        group_id        int(11)         UNSIGNED        No      0
        user_id int(11)                 No      0
        created datetime                        No      0000-00-00 00:00:00
        group_user_id

where group_user_id is original group creator

anyone... please help

Thanks
Chris


On Jan 6, 10:05 pm, Amit Badkas <[email protected]> wrote:
> Hi.
>
> I think the line
>
> if(!$this->GroupMember->save($this->$member))
>
> should be
>
> if($this->GroupMember->save($member))
>
> Hope this helps.
>
> Amit Badkas
>
> PHP Applications for E-Biz:http://www.sanisoft.com
>
> On Fri, Jan 7, 2011 at 10:22 AM, [email protected] <[email protected]>wrote:
>
>
>
>
>
>
>
> > if(!$this->GroupMember->save($this->$member))

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to