
tp5.1
langyu1021
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
tp5.1 使用redis缓存类型
修改文件 config/cache.php return [ // 缓存配置为复合类型 'type' => 'complex', 'default' => [ 'type' => 'file', // 全局缓存有效期(0为永久有效) 'expire'=> 0, // 缓存前缀 'prefix'=> '', // 缓存目录 'path' => '../runtime/cache/', ], 'redis' => [原创 2021-02-25 15:00:16 · 735 阅读 · 0 评论 -
TP5.1 分页伪静态解决方案
tp5.1伪静态的解决方案 $list=Db::name('news') ->where('status',1) ->paginate(10,false,[ 'page'=>$this->request->param('page/d',1), 'path'=>'/news/[PAGE].html...原创 2020-12-10 08:39:31 · 803 阅读 · 0 评论 -
使用助手函数 controller 跨模块 跨控制器调用控制器
使用助手函数 controller 跨模块调用控制器 //调用center模块下的Index控制器 $module= controller('center/Index'); //调用控制器index方法 $module->index(); //调用center模块下的index控制器的index方法模板 return $this->fetch('center@index/ind...原创 2020-03-02 14:47:59 · 553 阅读 · 0 评论