Ask about the CI framework-the company's internal CI framework, how to get the HTML of the artist into a website

Source: Internet
Author: User
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 ).

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.