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

  • How does the Yii framework reference JS and CSS files?
    How does the Yii framework reference JS and CSS files?
    The method for the Yii framework to reference JS and CSS files: first put the CSS and JS files in the web directory; then open the "AppAsset.php" file and rewrite the "registerAssetFiles" method; then change the CSS and JS file paths in this method Register; finally call the parent method.
    YII 2683 2020-06-04 11:57:49
  • How to turn off debugging in yii2
    How to turn off debugging in yii2
    The method to turn off debugging in yii2 is: 1. Open the main-local.php file in the config folder; 2. Close the debug runtime file; 3. Change the two entry files index.php and index-test.php under the web. becomes false.
    YII 3141 2020-06-03 17:55:46
  • What does Yii framework mean?
    What does Yii framework mean?
    The Yii framework is a high-performance PHP framework suitable for developing WEB2.0 applications. The Yii framework comes with rich functions, including MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, and scaffolding. , testing, etc., which can significantly shorten development time.
    YII 3541 2020-05-21 15:32:39
  • How yii implements data encryption and decryption
    How yii implements data encryption and decryption
    This article comes from the yii column. This article introduces the method of yii to implement data encryption and decryption. It has certain reference value and I hope it can help everyone. Encryption method: [encryptByPassword() and encryptByKey()].
    YII 3023 2020-05-10 17:00:26
  • How to output sql statement in Yii?
    How to output sql statement in Yii?
    Yii can use "echo $query->createCommand()->getRawSql();" to print sql statements. The "$query->createCommand()->getRawSql()" statement can obtain the currently executed sql statement.
    YII 2774 2020-05-11 18:31:12
  • What is the difference between tp framework and yii2?
    What is the difference between tp framework and yii2?
    Differences: 1. Yii has multiple configuration files, coverage configuration, multiple environment configurations, and local and online environment configurations, which is more flexible; there is only one type of TP. 2. On the ORM, TP uses strings or arrays, and Yii uses arrays.
    YII 4268 2020-05-11 18:31:00
  • What is the difference between yaf and yii?
    What is the difference between yaf and yii?
    Difference: Yaf framework is a PHP framework written in C language; while Yii framework is a high-performance PHP framework developed based on PHP5 and written in strict OOP.
    YII 2841 2020-05-01 18:24:02
  • What is the difference between yii and zend framework?
    What is the difference between yii and zend framework?
    The difference between Yii framework and zend framework: zend has powerful functions, but you can’t use basically 80% of the functions; in terms of learning speed and efficiency, YII will be slightly better.
    YII 3122 2020-05-01 18:23:52
  • What should I do if yii2 redis reports an error?
    What should I do if yii2 redis reports an error?
    Solution to yii2 redis error: first install the redis extension through composer; then open a cmd window and use the "cd" command to switch the directory to "D:\redis"; finally run the command "redis-server.exe redis.conf" that is Can.
    YII 2594 2020-04-08 10:54:56
  • Why is yii2 installation so slow?
    Why is yii2 installation so slow?
    The installation of yii2 is very slow because the js and front-end framework included in yii2 are relatively cumbersome. The solution is: first find the code ""config": {"process-timeout": 1800,}"; then change it to ""fxp-asset" : {"enabled"...}" is enough.
    YII 3170 2020-04-05 10:41:47
  • What should I do if yii mailer cannot send it?
    What should I do if yii mailer cannot send it?
    The solution to the problem that yii mailer cannot send: first set the configuration file "main.php" with the code "'mailer' => ['class' => 'yii..']"; then add the code "useFileTransport" in the controller ' => false".
    YII 2087 2020-04-05 10:35:09
  • How to use user component in yii2
    How to use user component in yii2
    How to use the user component in yii2: first use composer to install the yii2-user component; then configure the component; finally, pass Yii::$app->user in the code to use the user component.
    YII 3574 2020-03-19 18:14:45
  • 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 2619 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 2864 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 2542 2020-03-11 16:54:37

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