{EN} - 3.7.8.3 tablePrefix

The name of the table prefix used for the model. The table prefix is initially set in the database connection file at /app/config/database.php. The default is no prefix. You can override the default by setting the tablePrefix attribute in the model.

Example usage:

class Example extends AppModel {
   var $tablePrefix = 'alternate_'; // will look for 'alternate_examples'
}
  1. class Example extends AppModel {
  2. var $tablePrefix = 'alternate_'; // will look for 'alternate_examples'
  3. }

{EN} - 3.7.8.3 tablePrefix

The name of the table prefix used for the model. The table prefix is initially set in the database connection file at /app/config/database.php. The default is no prefix. You can override the default by setting the tablePrefix attribute in the model.

Example usage:

class Example extends AppModel {
   var $tablePrefix = 'alternate_'; // will look for 'alternate_examples'
}
  1. class Example extends AppModel {
  2. var $tablePrefix = 'alternate_'; // will look for 'alternate_examples'
  3. }

Differences