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

  • What are Yii and Redis?
    What are Yii and Redis?
    Yii is a component-based high-performance PHP framework for developing large-scale Web applications. Yii is written in strict OOP and has complete library references and comprehensive tutorials; redis is a high-performance key-value database that is completely It is open source and free, and redis is a NOSQL database.
    YII 2931 2020-03-19 11:39:56
  • How to specify the running path in yii
    How to specify the running path in yii
    How to specify the running path in yii: first open the configuration file/config/main-local.php; then add a line of code "'defaultRoute'=>'index',"; and finally reopen the page.
    YII 3000 2020-03-13 18:00:06
  • How to use yii filter
    How to use yii filter
    A Yii filter is a piece of code that can be configured to be executed before or after the controller action is executed. It must override the controller's public function filters() method in the controller to set which filter will act on which action.
    YII 2682 2020-03-11 16:54:37
  • 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 2771 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 4726 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 2916 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 2739 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 4435 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 2694 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 4096 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 3075 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 3316 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 2581 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 2466 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 3348 2020-03-11 13:19:31

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