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

  • How to enable debugging mode in yii
    How to enable debugging mode in yii
    yii enable debugging mode command: define('YII_DEBUG', true); //Whether to debug BUG, ​​please enable local testing; defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);.
    YII 5432 2019-12-04 12:00:31
  • What is yii csrf
    What is yii csrf
    CSRF is an attack method that coerces users to perform unintentional operations on the currently logged-in web application. Yii has a CSRF verification mechanism. Get the token value used for CSRF verification; determine whether the token used for CSRF exists. If it does not exist, use generateCsrfToken() to generate it.
    YII 2505 2019-12-04 11:49:29
  • What are yii2.0 components?
    What are yii2.0 components?
    Components are the main building blocks of Yii applications. Is an instance of the yii\base\Component class or its subclasses. The three main functions that distinguish it from other classes are Properties, Events, and Behaviors.
    YII 2865 2019-12-04 11:39:11
  • What kind of framework is the yii framework?
    What kind of framework is the yii framework?
    The yii framework is a high-performance, component-based PHP framework for rapid development of modern web applications. The name Yii (pronounced Yi) has dual meanings in Chinese of "extreme simplicity and continuous evolution", and can also be regarded as the abbreviation of Yes It Is!.
    YII 2398 2019-12-04 11:26:52
  • What is a module in Yii
    What is a module in Yii
    Modules in Yii are independent software units, consisting of models, views, controllers and other supporting components. End users can access the controllers of installed modules in the application body. The modules are treated as small application bodies, and the application The difference between the main body and the main body is that the module cannot be deployed independently and must belong to an application main body.
    YII 1759 2019-12-04 11:22:12
  • How to set up session in yii
    How to set up session in yii
    First of all, in the Yii framework, you do not need to use session_start() like standard PHP code. In the Yii framework, set the session variable: Yii::app()->session['var']='value';.
    YII 2841 2019-12-04 11:12:33
  • The difference between yii events and behaviors
    The difference between yii events and behaviors
    The difference between yii events and behaviors: Events are used to trigger the execution of a preset piece of code at a specific point in time. Classes that need to use events are inherited from yii\base\Component; behaviors are used to supplement classes, through Binding a behavior to a class allows the class to have properties and methods defined by the behavior itself.
    YII 3514 2019-12-04 11:04:21
  • What is the difference between tp5 and yii2
    What is the difference between tp5 and yii2
    The difference between tp5 and yii2: Generally speaking, tp5 is very suitable for small and medium-sized commercial projects, tp5 is a high-performance and domestically produced product; while yii2 is very suitable for large-scale commercial projects, yii2 is a performance and component framework, and I heard that Baidu is also using it.
    YII 3383 2019-12-04 10:57:08
  • What are the yii widgets?
    What are the yii widgets?
    Yii widgets include ActiveForm, Alert, Button, ButtonGroup, Carousel, Dropdown and other components. These widgets can quickly build bootstrap components based on boostrap CSS styles and directly generate HTML code.
    YII 2098 2019-12-04 10:45:07
  • What is the yii framework model
    What is the yii framework model
    The Yii framework model is part of the MVC pattern and is an object that represents business data, rules and logic. The Model class is also the base class for more advanced models such as Active Record.
    YII 2646 2019-11-30 15:17:50
  • What is the use of yii framework controller
    What is the use of yii framework controller
    The controller of the Yii framework is part of the MVC pattern. It is an object that inherits the Yii\base\Controller class and is responsible for processing requests and generating responses. Specifically, after taking over control from the application body, the controller analyzes the request data and transmits it to the model, transmits the model results to the view, and finally generates output response information.
    YII 2261 2019-11-30 13:13:50
  • Are Yii framework application components service locators?
    Are Yii framework application components service locators?
    No, the Yii framework application body is the service locator, which deploys a set of application components that provide various functions to handle requests. For example, the urlManager component is responsible for routing web page requests to the corresponding controller. The db component provides database-related services and more.
    YII 2282 2019-11-29 15:36:19
  • How to understand the application body of Yii framework?
    How to understand the application body of Yii framework?
    The application subject is the object that manages the overall structure and life cycle of the Yii framework application system. Each Yii application system can only contain one application principal. The application principal is created in the entry script and can be accessed globally through the expression \Yii::$app.
    YII 2221 2019-11-29 13:43:56
  • What is the use of the yii framework entry script?
    What is the use of the yii framework entry script?
    The yii framework entry script mainly completes defining global constants, registering the Composer autoloader, including Yii class files, loading application configurations, creating an application instance and configuring it, creating an application instance and configuring it, and calling yii\base\Application::run() to handle requests etc.
    YII 2049 2019-11-28 15:31:52
  • What is the application structure of yii framework?
    What is the application structure of yii framework?
    Yii is organized according to the Model-View-Controller (MVC) design pattern. In addition to MVC, Yii applications also have entry scripts, applications, application components, modules, filters, and widgets.
    YII 2187 2019-11-28 13:26:35

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