checking the debug of the website today, I stumbled upon several strange records: I don t understand why a request to https: *.12306.cn is directed to my server here are the Request Headers of several requests 1. POST https: epay.12306.cn ...
my model is basically in common models, so I feel that frontend models and backend models directories are useless. Did you all use it? ...
swoole does not destroy global variables and class static properties, and the code written by itself is OK, but for third-party libraries in vendor, how to deal with this situation if it is used and cannot be replaced? ...
use the redis, of the swoole protocol and then implement the connection pool by yourself (just a yii2-swoole written by a big god), which is stored in SplQueue, but I found that after the connection is inside, when it is idle for a long time, these conne...
the problem has been solved, and the answer is given by the downstairs Fractal boss components => [ assetManager => [ basePath => @webroot asset , baseUrl => @web asset , ...
problem description this is the expansion pack I want to install: https: github.com jianyan74 . use the command to install composer require jianyan74 yii2-easy-wechat the environmental background of the problems and what methods you have tried ...
$order = Orders::find() ->where([ order_sn => $order_sn, user_id => Yii::$app->user->identity->id]) ->all(); { "success": true, "code": 200, "message": "OK",...
1. For example: I use yii api to write the interface for submitting orders for example, the information in the form is verified at the front end. How can I implement the verification? used to use form model validation rules and load to load data. D...
in recent days, I have been doing database optimization. Due to the relatively large amount of data, some of the problems encountered are a machine that can put paper towels and count the income of each machine. Now there is a table recording machine in...
now there is a project, and the demand is too painful! the price of each type of vip, from vip1 to vip5, is different! there is a data table in the backend that stores vip type vip_type with vip type price (money) and grade (level) now users write...
I am like this now. The project has a lot of databases, all under the same mysql server, and there is db,db2,db3 in main.php. Now there is a storage operation like this. Table A comes from db2,B table and comes from db3,. When using transactions, it is ...
items are separated from front and rear! at present, you want to access 4 login of Weibo, login of Alipay, login of qq, login of Wechat. first question: should data tables be designed with four tables or one table with an app_type field! Specify whi...
the program uses the linked table to get all the field values of the associated table, and uses each () to generate the generator. Each time the value obtained in the loop contains only the data of the main table but not the data of the associated table,...
normal operation procedure to be implemented: 1, click forum page (no authorization, forum index) 2, click personal center (authorization required, member index) 3, jump to user login (user login) 4, click below third party authorization (such as We...
if redis is configured with master-slave distribution and is monitored by sentinel, how to use redis for yii2? is the configuration file directly connected to sentinel? ...
yii base InvalidArgumentException: The file or directory to be published does not exist: home vagrant yii test vendor bower-asset typeahead.js dist in home vagrant yii test vendor yiisoft yii2 web AssetManager.php:456 Stack trace: -sharp0 home vagra...
such as the title vendor extension and many are not used, how to make a reasonable choice and delete? ...
yii2 framework, debug toolbar is not displayed after opening debug, online environment does not display, but offline can be displayed as shown below, none online. After the code is uploaded online, only the database configuration is modified, but the r...
I haven t given an AR assignment for a long time. Today we ll take a look at my needs. there is a datasheet, user (id, username and created_at, with a total of 4 records. This is required for the job. Use AR to achieve the following results: An on...
Save large chunks of text with clob if(!$this->validate()){ return false; } $model = new Article(); $model->TITLE = $this->TITLE; $model->CID = $this->CID; $model->CONTENT_DATA = $this->CONTENT_DATA; CONTENT_DATACLOB $model-...