Just started using CakePHP, and am pretty new to frameworks for PHP in general.
I am trying to use CakePHP to rewrite a disaster of a company portal site we currently use. The database structure is pre-existing, and I don't want to have to do a database restructure. For the most part, everything works pretty good, it's just that I was wondering if it'd be possible to have a table suffix automatically applied like how the table prefix is. The way our db structure is set up is like so: dex_users_usr (<company prefix>_<table name>_<shortened table name>) The company prefix is set up in the database config and is applied to all tables, and in this case, in order to apply the appropriate suffix, the suffix would have to be set up in the model for that specific table. Is there a good way to go about doing this? I'd like to be able to define table specific suffixes via a variable, and have it so Cake doesn't include the suffix like how it doesn't include the prefix in the datasets. Thanks for any ideas. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
