Learn YII2 framework (IV) extension plug-in yii2-kartikgii, yii2yii2-kartikgii from scratch. From scratch to learn YII2 framework (4) extension plug-in yii2-kartikgii today found a useful plug-in yii2yii2-kartikgii. It is an extension based on the series of plug-ins kartik-v. Plug-in learning YII2 framework from scratch (4) extension plug-in yii2-kartikgii, yii2yii2-kartikgii
Today I found a good plug-in yii2-kartikgii. It is an extension based on the series of plug-ins kartik-v.
Plugin introduction
The main function of this plug-in is to help you generate kartik-gird when using gii to generate code curd. You do not need to manually add kartik-gird every time you use the default gii tool to generate code. this is exactly what I want. Quickly generate kartik-grid.
Before learning about this plug-in, you may need to understand the yii2-gird plug-in: Portal
Plug-in installation and configuration
View the plug-in URL directly:
Http://www.yiiframework.com/extension/yii2-kartikgii/
Plug-in trial
This plug-in is used in a project, and the code generated by the plug-in is tried.
Access the generated result page as follows:
It is worth mentioning that Kartikgii is basically completely compatible with the yii2-gird.
This includes the very practical feature "Floating Header". when you browse multiple data, the data table field name can always be displayed above the browser.
The effect is similar to that of a fixed row in Excel.
Bug fixes
When using the plug-in, the code is generated and an error is reported when you access CRUD index. php.
I caught up with the code and found a small BUG. The author wants to comment out a piece of code in the CRUD method template that comes with the framework. However, the annotator used is "//",
The generated code only comments one line, and several other lines are not commented out, so an error is returned. I manually modified the generated code template.
When a Bug was found, the plug-in author was notified immediately and the Bug was fixed. It can be used normally now.
Custom template
After installing the plug-in, you can modify these files in the plug-in file.
You can modify these template files to customize the generated code. We recommend that you back up data in advance.
Plugin (4) extension plug-in yii2-kartikgii today found a good plug-in yii2yii2-kartikgii. It is an extension based on the series of plug-ins kartik-v. Insert...