今年买了个域名,顺便也把公司框架换了。
对于PHP,我也就是刚入门的小菜鸟~~
框架用的是thinkPHP。有个产品视频展示页面/Video
想增加个功能:
每次打开/Video页面的时候上面的浏览次数+1.
麻烦简单说下前端代码和后台代码...
相关文件和参数:
App/Amin/Controller/CmsVideoController.class.php
App/Common/Service/VideoServcie.php
App/Home/Controller/VideoControllerService.php
App/Home/view/default/Video/play.html
数据库:video 字段:totalhits
请问在.php和.html文件中应该添加什么代码?
最佳答案