dev-master
9999999-devDatabase Installer for every Site
Apache-2.0
The Requires
by Shiv Charan Panjeta
database extension yii2 installer
Database Installer for every Site
Database Installing functionality module extention for Yii2., (*1)
=========== Database Installer for every Site, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist spanjeta/yii2-install "*"
or add, (*5)
"spanjeta/yii2-install": "*"
to the require section of your composer.json
file., (*6)
Add to modules ```php $config ['modules'] ['install'] = [ 'class' => 'app\modules\install\Install', ];
Save your SQL file in _backup folder with the name of "db_backup.sql"., (*7)
Add to web.php file, (*8)
defined ( 'SQL_FILE_PATH' ) or define ( 'SQL_FILE_PATH', dirname ( __FILE__ ) .'/../_backup/db_backup.sql' ); defined ( 'DB_CONFIG_PATH' ) or define ( 'DB_CONFIG_PATH', dirname ( __FILE__ ) . '/config/' ); defined ( 'DB_CONFIG_FILE_PATH' ) or define ( 'DB_CONFIG_FILE_PATH', DB_CONFIG_PATH . 'db' . '.php' ); defined ( 'DB_BACKUP_FILE_PATH' ) or define ( 'DB_BACKUP_FILE_PATH', dirname ( __FILE__ ) );
Pretty Url's /install
, (*9)
No pretty Url's index.php?r=install
, (*10)
```, (*11)
Database Installer for every Site
Apache-2.0
database extension yii2 installer