2

我是Yii框架的新手,我试图gii从代码中动态调用模型生成器,我找不到任何示例来执行此操作。那么有没有办法动态调用模型生成器和 CRUD 生成器呢?

4

1 回答 1

0
First you go /protected/config/main.php and un-comment the following code.

    'modules'=>array(
    'gii'=>array(
                'class'=>'system.gii.GiiModule',
                'password'=>'1',
                // If removed, Gii defaults to localhost only. Edit carefully to taste.
                'ipFilters'=>array('127.0.0.1','::1'),
            ),
    ),

then go through url localhost/../index.php?r=gii
于 2014-11-13T17:34:51.480 回答