
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".
Jul 21, 2020 am 10:40 AM
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.
Jul 21, 2020 am 10:36 AM
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.
Jul 21, 2020 am 10:31 AM
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.
Jul 20, 2020 pm 05:45 PM
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.
Jul 20, 2020 pm 05:34 PM
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);" .
Jul 20, 2020 am 11:14 AM
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".
Jul 20, 2020 am 11:09 AM
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.
Jul 20, 2020 am 11:05 AM
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.
Jul 20, 2020 am 10:59 AM
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.
Jul 20, 2020 am 10:53 AM
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...)}".
Jul 20, 2020 am 10:46 AM
What are the core components of yii
The yii components are: 1. "AssetManager", which represents the management of resource packages and resource publishing; 2. "Connection", which represents a database connection that can perform database operations; 3. "Application::errorHandler", which is used to handle PHP errors and exceptions wait.
Jul 20, 2020 am 10:33 AM
Solve the problem of yii2.0 api post error
Solution to yii2.0 api post error: 1. Turn off "_csrf" verification; 2. Add hidden fields to the form; 3. Add "_csrf" data field in Ajax; 4. Change "post" submission to "get" ".
Jul 20, 2020 am 10:26 AM
What features does yii2 have?
The features of yii2 are: 1. Comsoper is used in Yii2 to manage various dependencies; 2. Application security can be controlled; 3. Callback functions can be used in things; 4. Some new events are defined for thing management; 5. There are Resources are introduced in two ways; 6. View classes are introduced.
Jul 20, 2020 am 10:23 AM
Hot tools Tags

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use
