会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
所爱隔山隔海
博客园
首页
新随笔
联系
订阅
管理
2018年9月2日
轮播
摘要: <!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="
阅读全文
posted @ 2018-09-02 23:09 所爱隔山隔海
阅读(80)
评论(0)
推荐(0)
编辑
扇形
摘要: 11
阅读全文
posted @ 2018-09-02 22:42 所爱隔山隔海
阅读(124)
评论(0)
推荐(0)
编辑
2018年8月6日
tp5模型自动修改字段
摘要: 控制层
阅读全文
posted @ 2018-08-06 00:30 所爱隔山隔海
阅读(1958)
评论(0)
推荐(0)
编辑
2018年8月5日
tp5验证
摘要: <?php namespace app\admin\Controller; use think\Request; use think\Controller; use think\Validate; Class Yz extends Controller{ public function text()
阅读全文
posted @ 2018-08-05 16:08 所爱隔山隔海
阅读(140)
评论(0)
推荐(0)
编辑
tp5数据库配置操作
摘要: 如何链接数据库 有三种方式 1、配置文件定义 TP5\application\database.php // 数据库类型 'type' => 'mysql', // 服务器地址 'hostname' => '127.0.0.1', // 数据库名 'database' => 'ceshi', //
阅读全文
posted @ 2018-08-05 00:00 所爱隔山隔海
阅读(2232)
评论(0)
推荐(0)
编辑
2018年8月4日
tp5请求信息
摘要: 举个列子: 完成一个最简单的请求。 下面一些请求信息 1、获得域名 dump($request->domain()); 2、获得url地址 dump($request->url()); 3、获得入口文件 dump($request->baseFile()); 4、获得PathInfo路径 dump(
阅读全文
posted @ 2018-08-04 23:43 所爱隔山隔海
阅读(234)
评论(0)
推荐(0)
编辑
tp5页面跳转重定向
摘要: 三、页面跳转 1、方法存在的文件路径 TP5\thinkphp\library\traits\controller\Jump.php 成功跳转 $this->success(); 失败跳转 $this->error(); 2、以登录功能为例: 3、成功和失败页面的文件路径配置 application
阅读全文
posted @ 2018-08-04 23:26 所爱隔山隔海
阅读(910)
评论(0)
推荐(1)
编辑
2018年8月3日
tp5 入口文件访问优化
摘要: 1) 在public文件夹下建立 admin.php文件 2) 打开admin.php文件,复制 // 定义应用目录 define('APP_PATH', __DIR__ . '/../application/'); // 加载框架引导文件 require __DIR__ . '/../thinkp
阅读全文
posted @ 2018-08-03 00:27 所爱隔山隔海
阅读(338)
评论(0)
推荐(0)
编辑
tp5 方法控制器的调用
摘要: 1、命名空间2、use方法3、使用系统方法index(); echo ""; $u = controller('User'); $u->index(); echo ""; //不同模块下 $u = controller('admin/Index'); $u-...
阅读全文
posted @ 2018-08-03 00:10 所爱隔山隔海
阅读(4156)
评论(0)
推荐(0)
编辑
2018年8月1日
PT5目录框架1
摘要: www.tp5.com/index.php/admin/index/index admin文件 index控制器 index方法
阅读全文
posted @ 2018-08-01 15:47 所爱隔山隔海
阅读(149)
评论(0)
推荐(0)
编辑
下一页
公告