视图使用think-template 利用think-template的扩展标签改分页器。

webman分页要安装分页组件,很方便了。但每次用的时候都要实例化Paginator,还要去修改分页器的样式(默认Bootstrap)。但还是总觉得有点麻烦。 利用think-template的扩展模板标签库免实例化Paginator 1、视图使用think-template composer require topthink/think-template 2、修改配置config/view.php为 <?ph...

weplus 发表与 2023-12-20 445 浏览 3 评论
[瞎改系列]:Config类 get()这个函数在每次调用时可能都会造成一些开销

public static function get(string $key = null, mixed $default = null): mixed { if ($key === null) { return static::$config; } $keyArray = explode('.', $key); ...

weplus 发表与 2023-12-11 313 浏览 0 评论

weplus

340
积分
0
获赞数
0
粉丝数
2023-10-06 加入
×
🔝