How can the front-end interact with the back-end and quickly build a website!

Source: Internet
Author: User
How to interact with the background at the front end, and how to quickly build a website !!! Only understand how to operate a single page. in the html mixed PHP, submit it to the database for display. The background is finished. does my understanding add PHP statements in HTML and then perform operations in the background? (don't say MVC or something ?) For example. There is a front-end page with only one navigation bar. it is better than how the front-end interacts with the background, and how to quickly build a website !!!
Only understand how to operate a single page. in the html mixed PHP, submit it to the database for display.

The background is finished. does my understanding add PHP statements in HTML and then perform operations in the background? (don't say MVC or something ?) For example.

There is a front-end page with only one navigation bar, for example, "Hello" "Hello" "He is good ".

Embedded in this label Write a variable in it, and click delete in the background. here the value is fixed.

I have a problem with understanding and expression. in the eyes of others, I like to complicate it. the basics of PHP MYSQL have been completed,
I recently asked to write a small project, but I cannot understand it. I have been communicating with the lecturer and have been replying to "hmm,
The lecturer did not understand the problem. I hope that some of my predecessors will be able to give a simple explanation.

If you want to let me see the source code, I have nothing to say. The simplest I have is more than 1 MB, and all of them are written using the MVC framework,
How can I understand this. I am not responsible for telling you how to understand MVC.

If you can help me solve the MVC concept by the way,

V is the view, C is the controller, M is the module,
Submit the action from V to C, and then return it to C through the module, and then send the action accordingly.

Q:
1) do I see V? (Because I certainly don't see V, it's just a template. how does this V interact with the front-end page ).

Ask again:
Recently, there was a small project. I had only four sub-accounts, "no way to start", and I had four more words, "no need to cry ".
1) I heard that if you prefer a front-end, you can save it and modify it based on it. is that true?
2) I can't write back-end information. now I have typed 20 lines of code, a login interface, and can barely jump to the background management page after matching the user (blank pages won't be written below, ah, are you stupid )...


Recently, I read MVC and TP again. I hope to understand MVC from TP, but the more I see it, the more painful it is,
We also use MVC for implementation.

MVC does not answer this question. I hope your answer will give me a thorough understanding of the relationship between the background and the foreground.

Digress: "Isn't the background an addition, deletion, modification, and query "... I agree that it is lightweight.



------ Solution --------------------
Master of the lecturer...

No matter how much it is, what you should learn now is

Ajax
You can search for jquery ajax
That is, when jquery (js) is used to trigger the event ajax to obtain the background value, this type of interaction work.

The process is like this: html-> click-> ajax-> php callback-> modify html
------ Solution --------------------
MVC is convenient and easy to maintain for large websites. if you are not very familiar with the MVC architecture and are not familiar with the open-source MVC framework, you may not have a good foundation, I suggest you still use the source code to build a website and understand what MVC is. There are many answers on the internet. As for the author's failure to find a clear answer, I am puzzled.
------ Solution --------------------
MVC is just an architectural and thinking constraint. Discussion
Only understand how to operate a single page. in the html mixed PHP, submit it to the database for display.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.