I have underscores in the names of my table and I don't think it would
much different if there was a prefix.  Can you paste one of your
sample models?

On 8/18/06, beporter <[EMAIL PROTECTED]> wrote:
>
> I'm just starting to play with CakePHP and I've run into a stumbling
> block that exists only because of my pure unfamiliarity with the
> framework.
>
> I have an existing database that I'd like to link into using Cake, but
> the tables are all prefixed with "pts_".  The table I wish to connect
> to is named "pages". When I try to set my prefix in config/database.php
> for that connection, my resulting error is "No Database table for model
> Page (expected "ptspages")...
>
> Now, I would have expected a prefix value of "pts_" plus "pages" to
> equal "pts_pages" instead of "ptspages". What is causing the underscore
> to be dropped and how can I fix it?
>
> (I realize as a general practice using an underscore in the table name
> is not wise, and I realize I could change the table name, but my goal
> is to supplement [for the time being: eventually replace] an existing
> software package that wouldn't take too kindly to new table names so
> right now all I need is a work around.)
>
> I would appreciate some expert advice.
>
> Thanks!
> Brian
>
>
> >
>


-- 
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

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

Reply via email to