Re: Set table prefix from session?

2006-06-10 Thread nate
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

Set table prefix from session?

2006-06-10 Thread David Pärsson
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