Yii 1.1: yii-install

Install Database for yii Site
1 follower

# yii-install

Extension Installs Database for Yii project.

### Usage

```

Add to modules

'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

```

Total 1 comment

#20128 report it
shiv at 2017/09/14 11:46pm
Yii2 Installer

We have Yii2 extension as well. http://www.yiiframework.com/extension/yii2-install/

Leave a comment

Please to leave your comment.

Create extension
Downloads
  • Yii Version: 1.1
  • License: Apache License 2.0
  • Developed by: shiv
  • Category: Database
  • Votes: +1
  • Downloaded: 95 times
  • Created on: Jul 13, 2016
  • Last updated: Sep 14, 2017