Home > php教程 > PHP源码 > ShopNC 后台品牌默认排序优化

ShopNC 后台品牌默认排序优化

PHP中文网
Release: 2016-05-23 13:07:40
Original
1055 people have browsed it

ShopNC 默认下的排序是以品牌的 ID 来排序,这个其实没有太大意义,其实最好应该以,是否推荐,以及 brand_sort 设置来排序,才是比较科学的。
以下代码将修改其后台的排列顺序。

[PHP]代码    

#file: /admin/control/brand.php
#line: 60

$brand_list = $model_brand->table('brand')->where($condition)->order('brand_sort asc,brand_recommend desc')->page(20)->select();
Copy after login

                   

                   

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template