during the interview, the interviewer asked me what is the difference between a model and a controller. I replied: the main purpose of the controller is to provide the model with what needs to be done, and the model is equivalent to all the ordered th...
these days because of frequently watching MVC (PHP) on the Internet and personally implementing some scripts, and looking at Laravel , I found that MVC is a file that will look for a lot of FUNCTION and then even FUNCTION will look for FUNCTION . What ...
recently, I have been experiencing a very depressing thing. After the system developed by myself is put online, there will always be a problem that one or two payments have not changed the status of the order. And the order with the problem is that seve...
the day before yesterday, when I was doing a function, I found that the value of the page ajax was too much, so that both $_ POST and php: input were empty, which was very strange. so I did a demo test to find out why: <script> va...
problem description Mobile websites that are separated from the front and rear ends done by react will get code prompts for cross-domain login when doing third-party login. What happens now is that I request the interface of the backend (php), and the...
$name = function(){ $a="x"; $name2=function() use ($a){ return "".$a; }; return $name2; }; echo $name () (); Why do I have to write two parentheses here to output? ...
there is a Uploads directory under the root directory, which can be correctly identified by accessing the image files through url, but non-image files will prompt that the Uploads controller does not exist, what?? What logic? xxxxx.com Uploads proje...
php, do a time-to-time lottery function. As long as the user enters the lottery time, the code here will open the lottery at this time. Excuse me, what technology can be realized? The timer is too expensive! ...
it is said that there are three clues, and two are found, one is the 1983 obtained by solving Sudoku, and the other is the monarch s name obtained by transcoding in cookies ...
thinkphp3.2.3 does not know where it has been modified, and all errors will not be prompted, but will not be prompted directly to find the web page of localhost what should be done ...
Unable to load dynamic library phalcon , cannot find the specified module the php_phalcon.dll file from the official step has been placed in the ext directory, why can t the module be found? after downloading wamp, I also modified the "Documen...
by adding a c method to the source code of php, and then compiling it into an os or dll file, replacing the original extension, can you add your own function to the system? notice that I m talking about C extensions. ...
Interface for placing an order it is strange that there is no problem with other APIs to place an order. An API will report this error. This is the generated form . <html> <head>< head> <body> <form id="alipaysubmi...
I am a rookie, and now I have a problem. In the file file1.php, how to use the namespace in file2.php? In the absence of a framework, use the MVC pattern. <?php file1.php namespace file1; class File1 { public function Test() { echo...
< H1 > DbUnit < H1 > after reading the document of PHPUnit to write the database test, we should first establish the base, mainly to write a setup function, which is my . protected function setUp() : void { mysql $conn = $this->getConne...
in my js method request1, how can I submit to call the PHP function request? on this page <?php function request(){ } ?> <html id="html"> <button id="btn_click" onclick="request1()">click< button>...
is there any other way that the html code wants to call php, other than submit form submission? <?php function request(){ } ?> <html id="html"> <button id="btn_click" onclick="request1()">click< but...
I have two arrays of indefinite length arr1 and arr2 . Want to assemble a new array res ...
here s the thing. I want to make a landing page. First of all, A.html is a login page, and login is a post request. After a successful login, the server writes the login name of the req.session.LoginName= user. the front end jumps to the B page, an...
echo preg_match(" app common model NewsModel ", app common model NewsModel ,$matches,PREG_OFFSET_CAPTURE); 0 preg_match(" app common model ([a-zA-Z]+)Model ", app common model NewsModel ,$matches); -s...
as shown in the figure, the database is a mongodb, that inserts the data and then outputs it. Why is there an extra uplink in front of the data? how to solve this? ...
how does unity insert a gif picture? ...
I set the parent element to relative and the child element position to absolute positioning, but why does the font position change relative to the background when I zoom in and out? In the screenshot below, you can see the zoom in and out of the page, a...
I now have a parent window that is QWidget, with a lot of QLabel controls in it. I want to achieve the edge shadow of QWidget. looks for various methods such as paintEventgraphics, etc., either have no effect, or the entire parent window QWidget become...
var arr = [{key1:{obj1:{value1:1,value2:2}}},{key2:{obj2:{value3:1,value4:2}}}]; how can I get the value of key1.obj1.value1 in v-for? I have tried {{item.obj1.value1}} in the v-for (item in arr), html code, and the error obj1 is undefined . ...