cmf判断前后台
2022-10-08 17:22:18
250
{{single.collect_count}}
public function __construct(Request $request = null){// 获取当前控制器$c = $this->request->controller();//获取当前模块$m = $this->request->module();//判断是否为前台 admin一直为后台 控制器开头是Admin的也一定是后台$res = stristr($c,'Admin');//dump($m);//动态修改分页if ($res != false || $m == 'admin'){config('paginate.type','\cmf\paginator\Bootstrap');}else{config('paginate.type','\cmf\paginator\1');}}

前后台的分页样式是比较头疼的 有了这些改一下 就可以了!

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}