I have this same issue (exactly)... what am i doing wrong?
On Dec 31 2008, 11:28 pm, asteel <[email protected]> wrote:
> Hi,
>
> when I call a method of a model out of a controller, I get the
> following sql-exception:
>
> EXCEPTION ------------------------------------->
>
> Warning (512): SQL Error: 1064: You have an error in your SQL syntax;
> check the manual that corresponds to your MySQL server version for the
> right syntax to use near 'doTest' at line 1 [CORE/cake/libs/model/
> datasources/dbo_source.php, line 514]
>
> <------------------------------------- EXCEPTION
>
> CODE -------------------------------->
>
> class StartController extends AppController {
> var $name = 'Start';
> var $uses = array('Abc');
>
> function index() {
> // call that causes the exception
> $this->Abc->doTest();
> }
>
> }
>
> class Abc extends AppModel {
> // ** ORM **
> var $name = 'Abc';
> var $table = 'abc';
> var $displayField = 'titel';
>
> // ** Methods **
> function doTest() {
> return null;
> }
>
> }
>
> <-------------------------------- CODE
>
> I am using the latest version (1.2 / nightlybuild 31.12.2008).
>
> Any ideas?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---