How do novices get started with the mvc framework? I would like to share with you the following 6 points of experience based on my own work summary.
1. Choose a framework
As for which framework to choose, it mainly depends on the individual.
1. It is best to have friends around you who are using it, because it will be easier to solve when you don’t understand. Sometimes the answers in forums and manuals may not be clear to you, especially for PHPers who have never been exposed to the framework.
2. Choose this framework where the forum is more active. I feel the same way. When I was playing with the qeephp framework some time ago, the forum was deserted. I had to work, so I had no choice but to stick to it and encountered problems. At that time, there were very few people who answered the questions. At the same time, only certain parts of the manual were written, and many parts were not written. For a newbie, it was a direct KO.
2. Familiar with database operations
Each framework has its own operation method, which must be learned. You are familiar with the usage of select, delete, insert, and update. The fastest way is to read the manual and find the corresponding operation. At the same time, you need to know the debugging methods so that you can see whether there are any errors in the native operation. Basically, you can start developing projects with this framework.
3. Forum official website
This is very important. Read the manual first. If you encounter a problem, first search the forum to see if anyone has encountered your situation. If so, there is no need to ask. Then few people answer the same question again. Sometimes when you encounter a problem that you can solve yourself, answer it. This can deepen your understanding and don't feel like it is a waste of your time. This is only if you have time. So in the spirit of everyone for one and one for everyone
4. Download a case.
This is often the case for me. When I don’t know how to call a certain function, I directly look for the corresponding function in the case and read the code to see how others call it, and then add my own opinions.
5. Manual classes
MVC generally comes with some classes to facilitate user operations. If you have them, you don’t need to write the corresponding code. . . . . . . . . . .
6. There must be a spirit of "borrowing"
If you understand other people's things, they become yours.