YII2 framework (4) extensions yii2-kartikgii, yii2yii2-kartikgii_PHP tutorial from scratch

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.