阅读背景:

在主页上显示计数和top_categories

来源:互联网 

I want to show top_categories in the homepage. I have written top_categories function to list the categories that has most number of products. But I have written this function in Product Model. I am confused on where should I write this. Here is my code I want to show top_categories in the homepage.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: