Hi,
is it possible to set the table prefix to use in a model from a session
variable? I tried to set the tablePrefix variable from the controller
in the beforeFilter() function like this
$this->Model->tablePrefix =
$this->Session->read('User.database_table_prefix');
but it didn't seem to work. The model did not use any table prefix, but
it used my default database settings. If it's possible, how and where
can this be done?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---