Answers for "refresh database tables yii 1"

PHP
0

refresh database tables yii 1

public action refreshSchema()
{
// Load all tables of the application in the schema
Yii::app()->db->schema->getTables();
// clear the cache of all loaded tables
Yii::app()->db->schema->refresh();
}
Posted by: Guest on November-21-2020

Browse Popular Code Answers by Language