On 9/21/07, deepc <[EMAIL PROTECTED]> wrote:
>   messages_controller
> In my emails_controller is a function send() which should handle what

If this is correct

> $this->Email->send();

then this is wrong - the 'Email' here is the Model not the controller

> i got:
> Warning: SQL Error: 1064: You have an error in your SQL syntax; check

the error is a quirk of all the automagic in CakePHP - if you call a
method in a model which is non existent it gets passed to the database
as an SQL query

Solution is to move the send method to Email model

T

-- 
=============================================================
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=============================================================

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to