
-
All
-
web3.0
-
Backend Development
-
Web Front-end
-
All
-
JS Tutorial
-
HTML Tutorial
-
CSS Tutorial
-
H5 Tutorial
-
Front-end Q&A
-
PS Tutorial
-
Bootstrap Tutorial
-
Vue.js
-
-
Database
-
Operation and Maintenance
-
Development Tools
-
PHP Framework
-
Common Problem
-
Other
-
Tech
-
CMS Tutorial
-
Java
-
System Tutorial
-
Computer Tutorials
-
Hardware Tutorial
-
Mobile Tutorial
-
Software Tutorial
-
Mobile Game Tutorial

The jq code written in yii does not take effect
The solution to the problem that the jq code written in Yii does not take effect is to put the js code into [$this->registerJS()] in the view, and ensure that the js code is under the js library, such as [$this->registerJs ('alert(1)');].
Feb 18, 2020 pm 02:39 PM
Which is the entry file of yii framework?
The yii framework entry file is the index.php file in the web directory. This file can set the current running mode and environment of the program, including debugging status, product environment, test environment, and development environment.
Feb 18, 2020 am 11:54 AM
yii verification code is always wrong
The way to solve the problem that the Yii verification code is always wrong is: do not do separate validation before saving the model, for example [$model = new Test();$model->validate(array('test1','test2')) ;].
Feb 18, 2020 am 11:46 AM
How to use gii in yii
How to use gii in yii: first configure the IP or IP segment that requests the use of the gii module; then access http://domain/gii with the browser; finally click the start button in the Model Generator section to enter the generated Model page to start using it.
Feb 18, 2020 am 11:38 AM
yii2 determines that the database field is not empty
Methods for yii2 to determine if a database field is not empty: 1. [$query = new Query;]; 2. [$query -> select('ID,City,State')...->andWhere(['not', ['City' => null]])].
Feb 18, 2020 am 11:33 AM
How to get the verification code value in yii
How to get the verification code value in yii: Generally, get the verification code value in the controller, such as [$this->createAction('captcha')->getVerifyCode();].
Feb 18, 2020 am 11:21 AM
How to configure pathinfo mode in yii framework
How to configure the pathinfo mode in the yii framework: first open the config/main.php file and comment out usrManger; then add a file named .htaccess in the application root directory and write the corresponding rules; finally enable the rewrite module of apache , and restart.
Feb 18, 2020 am 11:18 AM
How to load public files in yii
Methods for loading public files in yii: 1. Use JS to define public methods to load on the page that needs to be loaded; 2. Use widgets to define widgets to perform loading; 3. Use beginContent to load files directly.
Feb 18, 2020 am 11:13 AM
yii reports an error when running init.bat
Solution to the error when yii runs init.bat: Open init.bat and modify [if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\xampp\php\php.exe (php.exe actual path)] .
Feb 18, 2020 am 11:02 AM
How to implement login in yii
The login implementation method in Yii: first create the shop_admin data table, add adminuser, adminpass and other fields; then create the login page and use ActiveForm to create the login form; finally write the model and controller to query the database.
Feb 18, 2020 am 11:01 AM
How to configure routing in yii framework
How to configure routing in the yii framework: 1. Enable the rewrite module in httpd.conf; 2. Add the server configuration file [.htaccess] in the directory; 3. Add urlManager to the framework configuration item \frontend\config\main.php Configuration items.
Feb 18, 2020 am 10:47 AM
How does composer update the yii2 version
How to update the yii2 version with composer: first make sure the latest Composer resource plug-in is installed; then execute php composer.phar update yiisoft/yii2 to upgrade Yii2.
Feb 18, 2020 am 10:20 AM
yii2.0 determines ios or Android
The method for yii2 to determine whether ios or Android is: first create a get_device_type function; then use Yii::$app->request->userAgent within the function to obtain the user browser UA; finally use the strpos function to find the UA characteristic strings of Android and ios. Can.
Feb 18, 2020 am 10:04 AM
How to set the yii2 verification code style
How to set the yii2 verification code style: first rewrite the method in any controller and configure the verification code style in captcha; then modify the form model and specify verifyCode as captcha; finally use ActiveForm to generate the corresponding fields.
Feb 17, 2020 pm 05:57 PM
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.

ArtGPT
AI image generator for creative art from text prompts.

Stock Market GPT
AI powered investment research for smarter decisions

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

Hot Topics

