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

  • How to enable debugging in yii2
    How to enable debugging in yii2
    How to enable debugging in yii2: First define YII_DEBUG as true and YII_ENV as true in the web/index.php file; then open the config/web.php file and add your own IP address to allowedIPS.
    YII 9740 2019-11-06 17:45:49
  • Steps to write api interface in yii2
    Steps to write api interface in yii2
    1. Create a separate application; 2. Beautify the route for the new api application; 3. Use gii to generate test modules; 4. Reconfigure the controller; 5. Configure Url rules for Goods; 6. Simulate request operations; 7. Do authorization authentication; 8. Do rate limiting.
    YII 10317 2019-11-06 17:32:00
  • The difference between yii2 advanced version and normal version
    The difference between yii2 advanced version and normal version
    The difference between the advanced version and the ordinary version of yii2: The advanced version and the basic version are just different in name, and their frameworks are exactly the same; the ordinary version is suitable for developing applications that are independent of front and backends; the advanced version is suitable for developing applications that are divided into front and backends.
    YII 3733 2019-11-06 17:02:58
  • yii2 close error prompt
    yii2 close error prompt
    How to turn off the error prompt in yii2: Add the following code "defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER', true);" at the beginning of the php program to turn off the error prompt.
    YII 3910 2019-11-06 16:45:21
  • How to solve the problem of unsuccessful scheduled tasks in yii2
    How to solve the problem of unsuccessful scheduled tasks in yii2
    Solution to the unsuccessful yii2 scheduled task: The execution fails because the path is wrong. First open the yii script file, and then modify the first line to the path on your server.
    YII 1963 2019-11-06 16:18:58
  • yii2 How to solve the problem that the data you submitted cannot be verified
    yii2 How to solve the problem that the data you submitted cannot be verified
    yii2 The data you submitted cannot be verified because of yii's csrf verification. This can be solved by adding "public $enableCsrfValidation = false;" to the controller.
    YII 7812 2019-11-06 16:01:21
  • yii2 determines whether it is a post submission form
    yii2 determines whether it is a post submission form
    How yii2 determines whether the form is submitted by post: Use "if(Yii::$app->request->isPost)" to determine. If the condition is true, it was submitted by post.
    YII 2944 2019-11-06 15:49:15
  • yii2 determines whether the user is logged in
    yii2 determines whether the user is logged in
    The method for yii2 to determine whether the user is logged in: use "if(Yii::$app->user->isGuest)". If the condition is true, the user is not logged in. If the condition is not true, the user is logged in.
    YII 4169 2019-11-06 15:44:05
  • How to reference css in yii framework
    How to reference css in yii framework
    How to reference css in the yii framework: 1. Create a default directory in the assets directory; 2. Create a css file directory in the default directory; 3. Create a php file and create system variables in the shop/protected/config directory; 4. At the entrance The file introduces the system environment file.
    YII 2657 2019-11-06 15:35:35
  • How to install yii2 tutorial
    How to install yii2 tutorial
    Yii2 installation tutorial: 1. Download the Yii framework and open the advanced folder; 2. Copy the advanced project file to the environment root directory and configure the access directory; 3. Add php.exe to the system environment variable.
    YII 2169 2019-11-06 17:52:18
  • How to check the version of yii
    How to check the version of yii
    Methods to check the version of yii: The first way is to echo \Yii::getVersion() directly on the page; the second way is to use the command window. There is a yii file in the project directory and directly execute the file: ./yii.
    YII 7206 2019-11-06 09:47:34
  • How to bind events in yii
    How to bind events in yii
    Yii uses trigger() and on() methods to bind events. Events are triggered by calling the yii\base\Component::trigger() method. This method must pass the event name and an event object to pass parameters to the event handler.
    YII 3151 2019-11-06 09:32:19
  • What does yii application component mean?
    What does yii application component mean?
    Yii application components are any objects and can be configured with the yii\base\Application::$components attribute in the application body configuration. Please be careful to register too many application components. Application components are like global variables. Using too many may make testing and maintenance more difficult.
    YII 2831 2019-11-06 09:17:12
  • Where is the yii add module?
    Where is the yii add module?
    First create a new modules directory in the root directory, and then add the module directory below this directory. Assuming that we need to add a user module here, we can name the directory user, and then add three directories, models, views, and controllers, under the user directory.
    YII 2873 2019-11-06 09:04:03
  • What does yii mean?
    What does yii mean?
    Yii is a component-based high-performance PHP framework for developing large-scale web applications; a simple command line tool yiic can quickly create a web application code framework, and developers can add services based on the generated code framework. logic to quickly complete application development.
    YII 18376 2020-10-21 11:05:29

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