Saturday, July 4, 2009

Re: Automagically filling table-fields?

Hi - using that line doesn't work either. So did I mess up with the
AuthComponent implementation then?
The Auth implementation is based heavily on what I could read up on
here: http://mrphp.com.au/code/code-category/cakephp/cakephp-1-2/simple-auth-users-habtm-groups-cakephp

When looking at the 'username' field in my 'posts' table, all the
posts I tried (including the one with the modification you suggested)
turns out as NULL.
http://imgur.com/NfwUY.png - see.

On Jul 4, 9:35 pm, Hendry <hendry....@gmail.com> wrote:
> Hi,
>
> That's weird, could you test using this line, just to make sure you
> implement the AuthComponent correctly:
>
> $this->data['Post']['username'] = 'Hendry';
>
> Regards,
> Hendry
>
> On Sun, Jul 5, 2009 at 3:28 AM, eMilk<emil.kja...@gmail.com> wrote:
> > Hi Hendry,
>
> > Thanks - didn't fix it though - still no data being added to the
> > 'username' field automatically yet. :(
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: