Have answered my own question:

include:

     var $useTable = "tblModules";

In the model file.

Regards,
Langdon


Langdon Stevenson wrote:
> Hi
> 
> I have recently begun (at long last) working on a Cake app running on 
> IIS and SQL server.
> 
> I am required to build this application working with a legacy database 
> that I cannot change.  I have specified the database connection to use 
> ADOBD as I could not get the mssql connector to work.
> 
> There is only one legacy table that I need access to, it is called:
> 
>    tblModules
> 
> Therefore I have created a model for it:
> 
> 
> <?php
>    class TblModule extends AppModel
>    {
>      var $name = 'TblModule';
>    }
> ?>
> 
> 
> Cake however is looking for a table called tblmodules, which of course 
> it cannot find.
> 
> I have scoured the documentation and mailing list for references to get 
> around this, but have found nothing.  Is there a way to specify the 
> table name that a model uses?  Or is there some other way around this 
> problem that someone can recommend?
> 
> I absolutely cannot change the name of the table as that would break the 
> other application that uses it.
> 
> Any suggestions would be greatly appreciated.
> 
> Regards,
> Langdon

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

Reply via email to