After learning about the Yii Framework, I created a simple website using the Yii Framework. the database is Mysql, and the index. php page displays some basic information in the database table. Q: I want to process the displayed data and display it on the page. I am not familiar with Yii, it is not clear which function in the view or model or controler should be modified. I hope to know more about the Yii Framework.
I have built a simple website using the Yii Framework. the database is Mysql, and the index. php page displays some basic information in the database table.
Q: I want to process the displayed data and display it on the page. I am not familiar with Yii, it is not clear which function in the view or model or controler should be changed. I hope the majority of friends will be confused ......
------ Solution --------------------
------ Solution --------------------
Controler
Or
Model
Yes.
Generally, it's more than C.
------ Solution --------------------
The general processing method in the framework is generally that view only processes data output, while the controller processes some related functions. The model processes some functions of database operations for convenient calls.
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.