yii-install ¶
Extension Installs Database for Yii project.
Usage ¶
**Add to modules**
```php
'modules' => array (
'install'
),
Save your SQL file in modules/install/db folder with the name of "install.sql".
Add to index.php file
defined('YII_ENV') or define('YII_ENV','dev');
defined('DB_CONFIG_PATH') or define('DB_CONFIG_PATH',__DIR__."/protected/config/");
defined('DB_CONFIG_FILE_PATH') or define('DB_CONFIG_FILE_PATH', DB_CONFIG_PATH.YII_ENV.'-db.php');
Url `
index.php?r=install`
Yii2 Installer
We have Yii2 extension as well.
http://www.yiiframework.com/extension/yii2-install/
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.