


Where is the yii add module?
First create a new modules directory in the root directory, and then add the module directory below this directory. Assuming that we need to add a user module here, we can name the directory user, and then add three directories, models, views, and controllers, under the user directory.
Nov 06, 2019 am 09:04 AM
What does yii mean?
Yii is a component-based high-performance PHP framework for developing large-scale web applications; a simple command line tool yiic can quickly create a web application code framework, and developers can add services based on the generated code framework. logic to quickly complete application development.
Nov 06, 2019 am 08:55 AM
The difference between tp and yii
The difference between the tp framework and the yii framework: 1. The yii framework has multiple configuration files, while the tp framework has only one; 2. The yii framework uses many page controls, but the tp framework has never used them; 3. The ORM of the tp framework can be characters, arrays, Yii framework can only be arrays.
Nov 05, 2019 pm 03:32 PM
How to write unit tests in Yii
Each test case extends the Codeception\Test\Unit class, which is the standard Codeception format for unit testing. It is very difficult to develop fully isolated unit tests in Yii, so an application is started before each test case.
Nov 05, 2019 pm 03:04 PM
How to initialize yii
After Yii2 is installed, according to the official documentation, you need to initialize ./init. During initialization, we select Development mode. The main work of initialization is to generate some configuration files and script files.
Nov 05, 2019 pm 02:55 PM
yii close error prompt
How to turn off error prompts in yii: change error_reporting in the php.ini file to: error_reporting=E_ALL & ~E_NOTICE.
Nov 05, 2019 pm 02:39 PM
How to access the controller in yii2
Yii2's default controller has only one directory under the controller directory. When needed for development, you need to add a new directory under this directory, that is, add a secondary directory under the controller, such as: controller/api/MemberController. php.
Nov 05, 2019 pm 02:28 PM
yii2 determines whether the table exists
The method for yii2 to determine whether a table exists is divided into two steps: the first step is to find all the table names in the database, and the table names are obtained as two-dimensional arrays; the second step is to determine whether the table names exist in the two-dimensional array.
Nov 05, 2019 pm 02:08 PM
How to implement yii2 routing
yii2 routing refers to the part of the URL used to identify the module, controller, and action used to process user requests. It is generally specified by the r query parameter.
Nov 05, 2019 pm 02:00 PM
How to use yii2 session
Yii2's Session is relatively simple, just operate it directly through \Yii::$app->session.
Nov 05, 2019 pm 01:43 PM
The difference between dao and ar in yii2
The difference between dao and ar in yii2: AR is not intended to solve all database-related tasks. Its best applications are modeling data tables into PHP structures and executing queries that do not contain complex SQL statements. For complex query scenarios, Yii DAO should be used.
Nov 05, 2019 pm 01:20 PM
Reasons why yii2 cookie cannot be retrieved
When using the method in yii2 to obtain a cookie, the string in the cookieValidationKey will be read to decrypt it (it will also be used to encrypt the cookie when storing it). Since js does not encrypt the cookie, it cannot be decrypted here, and naturally the cookie cannot be obtained.
Nov 05, 2019 am 11:55 AM
How to use yii2 aftersave
After saving, yii2 will call the aftersave method. Aftersave only does one thing, which is to trigger the corresponding event event, EVENT_AFTER_INSERT or EVENT_AFTER_UPDATE. You can look at the events of Yii2
Nov 05, 2019 am 11:48 AM
How to use jquery in yii
Yii uses jquery method: Yii::app()->clientScript->registerCoreScript('jquery'); . Through this registration statement, if the system automatically loads it, it will not be registered. If not, jquery will be loaded through this statement.
Nov 05, 2019 am 11:34 AM
Hot tools Tags

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

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

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article
Assassin's Creed Shadows: Seashell Riddle Solution
What's New in Windows 11 KB5054979 & How to Fix Update Issues
Where to find the Crane Control Keycard in Atomfall
How to fix KB5055523 fails to install in Windows 11?
InZoi: How To Apply To School And University

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
