situation description: A Table: user s coupon Information Table, Field: id,ticket_id,status B Table: voucher Information Table, Field: id,ticket_info,status in Model A, there is the following code: class An extend Model { public function getUserTi...
has been developing with tp5.1 recently. Because of the requirements, there is no front-end separation, using the template engine. But a strange phenomenon occurs when I load a page occasionally that some classes of the system do not exist. Such as thi...
this sql statement, under thinkphp5.17 tp there is another problem. My sql statement is executed incorrectly. I can t see the error statement in the tract panel or runtime log. I want to see what I did wrong and what I think. ...
I use thinkphp5 I don t know how a key corresponds to a value when using cache my preliminary idea is to apply controller name concatenation method name splicing all passing parameters md5 encrypted string as key when you get the cache, you also...
follow the ThinkPHP5.0 official manual prompt: User::event( before_insert , function ($user) { if ($user->status != 1) { return false; } }); :https: www.kancloud.cn manua... TP beforeInsert ,,,,. the direct insertion is s...
ask God to help me translate this native SQL statement into TP5 thank you! It is Db:: ( name )-> this kind of chained operation select a.id, a.titlerect a. Createwriting time as answer_count from fa_question a. Isometric solvepaper count (b.qid) as ...
I set up User.php, User.php under the model layer and have a method getUserInfo to query the data, as follows: $userModel = new UserModel; dump($userModel->getUser()); dump(json_encode($userModel->getUser())); the first printed data is as follo...
for example, the following figure shows the error message and the corresponding file under applicationmobilesupportcontroller the namespace of both class files is namespace appmobilesupportController; Message file with the following use: use app...
how do you tp5 encapsulate the extension function of redis? Because there are only simple functions of set and get by default, guide me. ...
problem description I introduced in app.vue that the names of root declaration subcomponents are all in a format similar to aaaVue Why should I use aaa-vue when using the template node of app.vue? <template> <div> <header-vue v-...
docker ...
<form name= feedback method= post enctype= multipart form-data action= [!--news.url--]e enews index.php > <input type= hidden name= bid value= 1 > <input name= enews type= hidden name=bid value="AddFee...
A normal branch of a project has been in a normal branch for 2 years, but there has been a sudden error in these two days. The test found that thinkphp could not read the cache, and runtime must be deleted to be normal. I even restarted the server, bu...
to do a project, you need to write an animation. If you write it in css in the local demo, it will not be successful in less. Does less have a special way to write this? ...