CI framework ask-company internal CI written framework, how to receive the artist's HTML into a website CI framework ask-company internal CI written framework, how to get the artist's HTML into a website
Some ideas are not very good. I would like to ask my predecessors. after receiving HTML, I should rewrite the view layer first, write the control layer first, or set up the website columns in the background of the framework written by ci, write more.
I am not sure about the order. please kindly advise. thank you.
Reply to discussion (solution)
Model-> controller-> view
I'm stupid. could you elaborate.
Model-> controller-> view
Is the model all written, then write the controller one by one, and then view it?
Still interspersed
In addition, the company's own framework has topic information in the background. do you need to modify this information first?
MVC?
M, V, and C are relatively independent. Although there is no strict division, you should maintain their independence as much as possible.
Since it is independent, it is not so important to know who is first.
If you have enough manpower, you can perform this operation at the same time.
If I am alone, how can I make it easier?
If you like it, start from anywhere.
However, you can follow the website access process, interspersed. For example, starting with the controller, we use Model, write, view, and write.
Recently, I am also using ci to write Projects. mvc must be independent of each other and it has nothing to do with each other. if you ask your personal habits, I will be used to writing them myself, first obtain the requirement, and then design the database-> V-> C-> M
CI is an mvc framework that standardizes your coding habits. As for how to write code according to my habits, I can meet your requirements on the C layer, I mainly use the functions used by CI for convenience. As for the class encapsulation, I can write it myself, or call the m layer. You can write the data and output it to the view layer.
In my order, first rewrite the View page, what data is needed for the View page, and then write the Controller page. if you have data requirements, then, call the Model on the Controller page (The View page can also be called but is not recommended ).