Sorry for taking so long to write back havent worked on this project
in a while.
I tried that and its still the same message, even when i dont set the
useTable variable it still looks like the table name isnt being
inserted, what else could be wrong?
Thanks
On Sep 8, 2:12 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/7/07, vegancoder <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hello
>
> > Im having a bit oftroubleusingthe model->findAll() method.
>
> > I am trying to integrate phpbb with cake and want to use phpbb's user table.
>
> > In my model i have used this to set my table: $this->useTable =
> > 'phpbb_users'
> > I think that is correct, could someone tell me if its not?
>
> > When i try and getallmy user id'susingthis: $result =
> > $this->User->findAll(null, array("User.user_id"));
>
> > I am getting a syntax error and its showing that my SQL looks like this:
> > SELECT `User`.`user_id` FROM AS `User` WHERE 1 = 1
>
> > To me it looks like the user table isnt getting set. What have i done wrong?
>
> Try setting it this way:
>
> var $useTable = 'phpbb_users';
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007: "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---