Showing posts with label Yii Framework Generating Code with Gii. Show all posts
Showing posts with label Yii Framework Generating Code with Gii. Show all posts

Yii Framework Generating Code with Gii

Yii Framework Generating Code with Gii


Yii Framework Generating Code with Gii Yii Framework is the Auto generating Code MVC Patters Module View Controller Any one type this Code Module or View or Controller another two auto generating the Code is very code friendly Framework.

Yii Framework Generating Code with Gii
Yii Framework Generating Code with Gii


Gii

Configuration Gii File first Config/web.php 

$config = [ ... ];

if (YII_ENV_DEV) {
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
    ];
}

decode gii file is enable this code

'gii' => [
    'class' => 'yii\gii\Module',
    'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.*', '192.168.178.20'] // adjust this to your needs
],
Next, click on the "Preview" button. You will see a list of files to be generated, as shown below.

gii Code Generator