ConnectionManager::getDataSource('default')->config['prefix'] =
this->Session->read('User.database_table_prefix');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
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