current location:Home > Technical Articles > PHP Framework > YII

  • How to obtain ip in yii2.0
    How to obtain ip in yii2.0
    YII obtain IP address command: Yii::app()->request->userHostAddress;. Get the current domain name command: echo Yii::app()->request->hostInfo;.
    YII 4004 2019-12-30 11:03:11
  • How to use apidoc to generate technical documentation in yii2
    How to use apidoc to generate technical documentation in yii2
    Yii2 must first install the apidoc extension. If the extension is not installed, first install phpdocumentor/reflection-docblock, and then install the following extensions cebe/markdown and yiisoft/yii2-apidoc to generate technical documents.
    YII 3115 2019-12-30 10:53:22
  • Where is yii2 strong?
    Where is yii2 strong?
    Yii2 is easy to install, uses modern technology, is highly scalable, encourages testing, simplifies security, shortens development time, and is easily tuned for optimal performance. Yii is a pure OOP framework that takes full advantage of some of PHP's more advanced features, including delayed static binding, SPL classes and interfaces, and anonymous functions.
    YII 2460 2019-12-30 10:34:44
  • How to prevent repeated form submission in yii2
    How to prevent repeated form submission in yii2
    Yii2 uses csrf to prevent repeated submission of forms. By default, Yii2's csrf verification uses cookies to save token verification. To prevent repeated submission of forms, you must first change this method to session.
    YII 3325 2019-12-30 10:22:06
  • How to configure yii2
    How to configure yii2
    Configuration is widely used to create new objects or initialize existing objects in Yii. The configuration usually contains the class name of the object to be created and a set of initial values ​​​​of the properties that will be assigned to the object. The properties here are Yii2 properties. You can also bind event handlers to events on an object, or attach behaviors to the object.
    YII 2530 2019-12-30 10:13:18
  • How to use gii in yii framework
    How to use gii in yii framework
    First, add 'allowedIPs' => ['*'] to main-local.php in the config file of the Yii framework. Enter index.php?r=gii in the address bar. The gii login interface will open. Enter the password set in the previous step.
    YII 2073 2019-12-30 10:05:56
  • How to implement rbac in yii2
    How to implement rbac in yii2
    Yii2 implements a general hierarchical RBAC and follows the NIST RBAC model. Yii2's permission management implementation supports two carriers: file and db. The core of the db-based implementation is four tables: a table for storing roles or permissions, a table for upper and lower levels of permissions and roles, an allocation table for users and permissions (roles), Rule table
    YII 2176 2019-12-30 09:42:08
  • How to create applications in yii framework
    How to create applications in yii framework
    The yii framework uses the powerful yiic tool to create applications. Run yiic on the command line, such as: % YiiRoot/framework/yiic webapp WebRoot/testdrive.
    YII 2420 2019-12-30 09:31:22
  • How to use module in yii2
    How to use module in yii2
    Modules are organized into a directory called base path. In this directory, there are subdirectories such as controllers, models, and views, which correspond to controllers, models, views, and other codes respectively, very similar to applications.
    YII 2376 2019-12-30 09:17:22
  • What projects is the yii framework suitable for?
    What projects is the yii framework suitable for?
    Yii is a general web programming framework that can be used to develop various web applications built with PHP. Because of its component-based framework structure and well-designed caching support, it is particularly suitable for developing large-scale applications, such as portals, communities, content management systems (CMS), e-commerce projects, etc.
    YII 2198 2019-12-27 16:25:04
  • What does yii2.0 framework mean?
    What does yii2.0 framework mean?
    Yii is a high-performance PHP5 web application development framework, and yii2.0 is the 2.0 version of the Yii framework. Because the Yii2.0 version framework is completely rewritten, there are quite a few differences between the 1.1 and 2.0 versions.
    YII 3022 2019-12-27 16:16:15
  • what is yii filter
    what is yii filter
    A Yii filter is an object that is executed before or after a controller action is executed. Filters can contain pre-filtering (filtering logic before the action), post-filtering (filtering logic after the action), or both.
    YII 2554 2019-12-27 14:49:58
  • The difference between yii2 basic version and advanced version
    The difference between yii2 basic version and advanced version
    The difference between the basic version and the advanced version of yii2: The basic version is suitable for those who are new to the Yii framework. It provides simple functions and a single application. However, this single application can also be turned into multiple applications. The advanced version is suitable for those who know the Yii framework. It has multiple applications and is divided into front and backends. It is similar to the basic version. However, it may be a little more complicated for children who have not come into contact with the Yii framework.
    YII 3276 2019-12-27 10:07:12
  • Yii2.0 implements hiding the label label in the form
    Yii2.0 implements hiding the label label in the form
    The method to hide the label label in the form in yii2.0 is: [<?=$form->field($model, 'ee_type')->dropDownList(YiiLib::loadDDList())->label(false)?> 】.
    YII 3527 2019-12-24 14:55:23
  • How to customize public classes in yii2
    How to customize public classes in yii2
    The method to customize public classes in yii2 is: 1. First create a new folder in the YII root directory, such as [wechat]; 2. Then create a new file in the folder, such as [wechat.php]; 3. Finally Just introduce the [wechat.php] file to call the controller.
    YII 2834 2019-12-24 14:39:56

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28