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

  • Why does the yii verification code not refresh?
    Why does the yii verification code not refresh?
    The reason why the yii verification code is not refreshed is because renderPartial() does not automatically render and output the client script by default. It needs to specify parameters to output and render, so the solution is to specify processOutput as true.
    YII 2654 2020-03-11 16:32:41
  • Where is the yii database configuration file?
    Where is the yii database configuration file?
    Yii's public database configuration file is in /common/config/main-local.php. If the frontend and backend are different: the frontend is in /frontend/config/main-local.php and the backend is in /backend/config/main-local.php.
    YII 4419 2020-03-12 13:21:51
  • How to introduce js into yii2.0
    How to introduce js into yii2.0
    The method for introducing js in yii2.0 is: 1. Use the inline script registerJs() to register the js code internally; 2. Use the external script registerJsFile() to import the js file externally.
    YII 2771 2020-03-11 14:41:52
  • Solution to 400 error in yii2
    Solution to 400 error in yii2
    Solution to 400 error in yii2: 1. Turn off CSRF. 2. Add hidden fields to the form. 3. Add the _csrf field to AJAX.
    YII 2617 2020-03-11 14:31:04
  • The difference between yii2 and tp5
    The difference between yii2 and tp5
    The difference between yii2 and tp5: 1. Yii has multiple configuration files, overlay configurations, multiple environment configurations, and local and online environment configurations. tp has only one type; 2. There are many page controls in yii, such as list/grid/detail, etc., tp does not have them. .
    YII 4309 2020-03-11 14:30:58
  • Where to set language in yii
    Where to set language in yii
    ​The location to set the language in yii: 1. Set in app\web\index.php. 2. Add the code to set the language in app\config\web.php.
    YII 2546 2020-03-11 14:23:07
  • How to connect multiple databases in yii2
    How to connect multiple databases in yii2
    The method for yii2 to connect multiple databases is: 1. First, open the database configuration file common\config\main-local.php; 2. Then, add db2 under the original db configuration item and configure the properties of the second database. .
    YII 3955 2020-03-11 14:17:20
  • What is the entry file of yii framework
    What is the entry file of yii framework
    The entry file of the yii framework is index.php, which is located under the web directory. The entry file can set the current running mode and environment of the program, including debugging status, product environment, test environment, and development environment.
    YII 2958 2020-03-11 14:05:17
  • How to access debug in yii2
    How to access debug in yii2
    How to access debug in yii2: 1. Install the debug tool in the project; 2. Configure web/index.php; 3. Configure config/web.php; 4. Add web-local.php; 5. Set the runtime directory to be readable and writable.
    YII 3046 2020-03-11 13:52:53
  • How to use twig template engine in yii framework
    How to use twig template engine in yii framework
    The method for the yii framework to use the twig template engine is: 1. First, open the composer.json file and add ["yiisoft/yii2-twig": "*"]; 2. Then, update composer; 3. Finally, open main. php file and add configuration.
    YII 2462 2020-03-11 13:42:34
  • How to set default route in Yii?
    How to set default route in Yii?
    How to set the default route in Yii: open the configuration file (web.php) and add 'defaultRoute' => 'shop/index' in the configuration file. Shop/index is the default route set.
    YII 2373 2020-03-11 13:34:57
  • How to get post parameters in Yii?
    How to get post parameters in Yii?
    How to get Post parameters in yii: You can use the "Yii::$app->request->post($key,$default)" statement to get the post parameters.
    YII 3103 2020-03-11 13:19:31
  • How to import image resources into yii
    How to import image resources into yii
    The method for introducing image resources into the Yii framework is: 1. First, add a static folder under the web folder to store images static resource files; 2. Then, add an on-demand loading method in the AppAsset.php file; 3. Finally , just introduce the images resource into HTML.
    YII 3159 2020-03-11 11:57:49
  • What is the yii framework mainly used for?
    What is the yii framework mainly used for?
    The yii framework is mainly used to develop various web applications built with PHP. Yii framework is a general web programming framework. Because of its component-based framework structure and exquisitely designed caching support, it is particularly suitable for developing large-scale applications, such as portals, communities, content management systems, etc.
    YII 2083 2020-03-11 11:43:08
  • How to download and install the yii2.0 framework
    How to download and install the yii2.0 framework
    The method to download and install the yii2.0 framework is: 1. First, install the [php web] environment; 2. Then, create the installation directory of the yii framework; 3. Then, open the command prompt and enter the created yii2 directory; 4 . Finally, execute the installation command and verify whether the installation is successful.
    YII 2319 2020-03-11 11:32:02

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