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

  • How to add prefix to table in yii2
    How to add prefix to table in yii2
    How to prefix a table in yii2: first find and open the database configuration related files; then set the table prefix through the statement "'tablePrefix'=>'colin_'", which means that the table prefix has been set to "colin_".
    YII 3055 2020-07-21 12:01:33
  • Solve the problem of being unable to receive emails sent by yii2
    Solve the problem of being unable to receive emails sent by yii2
    The solution to the failure to receive emails sent by yii2: first find and open the configuration file code; then change the code "'useFileTransport' => true" to "'useFileTransport' => false,"; finally save the changes.
    YII 3478 2020-07-21 11:54:06
  • What is Yii in yii2
    What is Yii in yii2
    Yii in yii2 is a framework core class, and the lowercase yii in yii2 is the namespace path; Yii has two main versions, namely 2.0 and 1.1, and the latest stable version of yii is the yii2 version.
    YII 3694 2020-07-21 11:49:22
  • What are the differences between yii2.0 and laravel?
    What are the differences between yii2.0 and laravel?
    The differences between yii2.0 and laravel are: 1. Under the trend of complete separation of front and back ends, the coupling of yii2's front and back ends is heavier than that of laravel; 2. yii will not over-design the code for a certain design pattern, while laravel is a bit Over-designed; 3. The laravel community is relatively active and rich in resources.
    YII 2953 2020-07-21 11:34:18
  • How to print sql in yii2
    How to print sql in yii2
    The method of printing sql in yii2: first query the structure through the statement "Article::find()->joinWith('articleClass');"; then call the createComment and getSql methods; finally print it out through "var_dump".
    YII 3693 2020-07-21 10:40:34
  • What should I do if I get an error when calling a stored procedure in Yii?
    What should I do if I get an error when calling a stored procedure in Yii?
    The solution to the error when yii calls the stored procedure: first check the exceptions thrown after the "MYPROC" statement is called; then according to the information prompt, add the statement "SET NOCOUNT ON;" to the stored procedure.
    YII 4122 2020-07-21 10:36:02
  • How to display debugging information in yii
    How to display debugging information in yii
    How to display debugging information in yii: first add the statement "defined('YII_DEBUG') or define('YII_DEBUG',true);" to the entry file; then turn on the page display mode; and finally configure the database.
    YII 3138 2020-07-21 10:31:50
  • What projects is the Yii framework suitable for developing?
    What projects is the Yii framework suitable for developing?
    Yii is a general web programming framework that can develop any type of web application. One of the advantages of this framework is that it has a very good and powerful caching component, so it is more suitable for developing high-traffic applications, such as portals, forums, content management systems, etc. E-commerce systems and so on.
    YII 2316 2020-07-20 17:45:51
  • Does the Yii framework use a template engine?
    Does the Yii framework use a template engine?
    The Yii framework does not use a template engine. Yii still uses original PHP as the template syntax. The framework is a high-performance component-based PHP framework for developing large-scale Web applications. It is written in strict OOP and provides the requirements for Web application development. almost all functions.
    YII 2383 2020-07-20 17:34:29
  • How to block error prompts in Yii
    How to block error prompts in Yii
    How to block error prompts in yii: first open the entry file "index.php"; then add "error_reporting (0);"; and finally comment "defined('YII_DEBUG') or define('YII_DEBUG',true);" .
    YII 3294 2020-07-20 11:14:01
  • How to solve the problem that the yii2 virtual machine cannot open gii
    How to solve the problem that the yii2 virtual machine cannot open gii
    The yii2 virtual machine cannot open gii because the default Gii under Linux can only be accessed through "127.0.0.1". The solution is to add your own IP in "conf/main-local.php".
    YII 3069 2020-07-20 11:09:46
  • What is the reason why yii2 responds too slowly?
    What is the reason why yii2 responds too slowly?
    The reason why yii2 responds too slowly is that when php5.3 or above encounters localhost, it will consider whether it is ipv4 or ipv6, which will lead to a long response time. The solution is to change "localhost" to "127.0.0.1 "That's it.
    YII 3560 2020-07-20 11:05:59
  • How to set constants in yii1.0
    How to set constants in yii1.0
    The method of setting constants in yii1.0: first create a new "constants.php"; then define the constants through the method "define('CL', 'https://www.baidu.com/');"; then introduce the constants into the system; Finally, just call the system constants anywhere in the system.
    YII 2803 2020-07-20 10:59:50
  • Solution to garbled code problem in yii2 console
    Solution to garbled code problem in yii2 console
    The solution to the garbled code in yii2 console: first find and open the corresponding script file; then modify the code statement to "$content = iconv("utf-8","gb2312//IGNORE",$content);"; finally save the modification. Can.
    YII 2749 2020-07-20 10:53:44
  • What should I do if yii2 hasone reports an error?
    What should I do if yii2 hasone reports an error?
    The solution to the yii2 hasone error: first open the corresponding file according to the documentation; then modify the statement to "function getUser(){return $this->hasOne(User::className...)}".
    YII 2169 2020-07-20 10:46:57

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