What should I do with the PHPMVC framework?

Source: Internet
Author: User
Hello, PHPMVC framework! I recently studied PHPMVC. What role does model play? MVC is only available. it's a bit vague to learn. please help me !, 0. eliminate zero answers for the benefit of mankind. 1. model plays a role in business logic. 2. controler uses global control to call the business logic model and passes the call results to the v php mvc framework.
Hello everyone! I recently studied PHP MVC. What role does model play? MVC is only available. it is a bit vague to learn. please help me!

------ Solution --------------------
0. eliminate zero answers for the benefit of mankind.
1. model plays a role in business logic.
2. controler uses global control to call the business logic model, pass the call result to the view, and finally display it to the user.
3. view is used for display. generally, templates are used.



Class MyModel
{
Funcation Logic ()
{
// Business logic, for example, 1 + 2 equals a few.
Echo 1 + 2;
}
}

In controler, a new model is created, Logic is called, and the result $ result is sent to view.

------ Solution --------------------
QeePHP API Reference Manual
Http://qeephp.com/docs/qeephp-api

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.