2017 © Pedro Peláez
 

library yii2-gii

gii library for Yii2 framework

image

colee/yii2-gii

gii library for Yii2 framework

  • Saturday, December 31, 2016
  • by colee
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

# yii2-gii 扩展

安装:composer require colee/yii2-gii --prefer-dist, (*1)

Model分层说明

common里分了三层
bases --- 基础层
models --- 实例方法层
cores --- 核心层,对外接口,静态方法为主, (*2)

usage

在配置中添加
``` php $config['modules']['gii']['generators'] = [ 'model' => [ 'class' => 'colee\gii\model\Generator' ], ];, (*3)

--------------------------------------------

## 夹具数据模版生产工具
### usage
在配置中添加  
``` php
$config['modules']['gii']['generators'] = [
    'fixtures' => [
        'class' => 'colee\gii\fixtures\Generator'
    ],
];

通过访问 http://127.0.0.1:8080/gii/fixtures 生成夹具模版
并前往模版编写写测试用例, (*4)

生成假数据, (*5)

tests/codeception/bin/yii fixture/generate teacher --count=100

运行测试用例:, (*6)

    cd tests/codeception/common/
    codecept run

运行指定目录的case, (*7)

codecept run .\unit\models\fixtures

运行指定文件的某个case, (*8)

codecept run .\unit\models\LoginFormTest.php:testLoginNoUser

The Versions

31/12 2016

dev-master

9999999-dev https://github.com/colee1985/yii2-gii

gii library for Yii2 framework

  Sources   Download

MIT

The Requires

 

by Avatar colee

yii2 fixture colee yii2-gii

31/12 2016

1.0.0

1.0.0.0 https://github.com/colee1985/yii2-gii

gii library for Yii2 framework

  Sources   Download

MIT

The Requires

 

by Avatar colee

yii2 fixture colee yii2-gii