English 中文(简体)
Yii Tutorial

Yii Useful Resources

Selected Reading

Gii – Generating Module
  • 时间:2024-09-17

Gii - Generating Module


Previous Page Next Page  

Let us see how to generate a Module.

Step 1 − To generate a module, open the module generation interface and fill in the form.

Module generator

Step 2 − Then, cpck the “Preview” button and “Generate”.

Step 3 − We need to activate the module. Modify the modules apppcation component in the config/web.php file.

 modules  => [
    admin  => [
       class  =>  appmodulesadminModule ,
   ],
],

Step 4 − To check whether our newly generated module works, type the UR http://localhost:8080/index.php?r=admin/default/index in the web browser.

Generated module Works Advertisements