Yii website homepage question: a website homepage is composed of many modules. each module corresponds to a controller in the background. how can this homepage be displayed? For example, the home page of a travel website displays destination recommendations and route recommendations. The results of the homepage recommendation query can also be displayed on the destination homepage and line homepage. So how can this reusable query be processed? Previously, we considered the Yii website homepage in the homepage module.
I would like to ask, there are many modules on the homepage of a website. each module corresponds to a controller in the background. how can I deal with the display of this homepage?
For example, the home page of a travel website displays destination recommendations and route recommendations. The results of recommendation queries on the homepage are also acceptable.
Displayed on the destination homepage and line homepage. So how can this reusable query be processed?
Previously, I considered calling methods in various controllers through runcontroller in the homepage module, which is a little problematic and not very good. I think other people's source code is quite simple. Shared: More
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.