简体   繁体   中英

calling gii Yii Framework dynamically

i am new to Yii Framework and i am trying to call the gii model generator dynamically from code, i cant find any sample to do this. So is there any way to call model generators and CRUD generator dynamically ?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM