Model::setTableName
Set Table Name
Description
public self Model::setTableName( string $table )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$table | string | Target table name |
Example
Controller
$model = new Model();
$model->setTableName('cms_news');
// Same with the following
$model = new Model(false, array(
'table' => 'cms_news',
));