Ketan Patel wrote:
> Looks like you don't know what you are trying to do here. Read the
> manual. As you don't have a clue what a model and controller is. In
> your code, you are importing the User model and then calling the
> action of the users controller. On top of that, this is not the way to
> do whatever you are trying to do.
>
I trying to let the user login from every page.
So, would you suggest that i move the user model into the app model ?
> On May 19, 6:16 pm, Knud Soerensen <[EMAIL PROTECTED]> wrote:
>
>> In app_controler.php i have
>>
>> class appControler extends Controler
>> {
>>
>> function beforeFilter()
>> {
>> App::Import('Model','User');
>> $this->User=&new User();
>> $this->User->login();
>>
>> }
>> }
>>
>> But I get 2 simmilar looking warnings:
>> warning (2): pg_query() [function.pg-query] Query failed: ERROR: syntax
>> error at or near "login"
>> LINE 1: login
>>
>> and
>>
>> warning (512): SQL Error: ERROR: syntax error at or near "login"
>> LINE 1: login
>>
>> What am i doing wrong ??
>>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---