namespace app\index\controller; use think\Controller; class Index extends Controller { public function _initialize() { echo 'init<br/>'; } public func ...
分类:
其他好文 时间:
2020-05-08 09:38:41
阅读次数:
47
namespace app\index\controller\one; use think\Controller; class Blog extends Controller { public function index() { return $this->fetch(); } public fu ...
分类:
其他好文 时间:
2020-05-08 09:23:46
阅读次数:
122
1 package test_1_2; 2 3 public class SpaceShipControls { 4 5 /** 6 * 代理 7 */ 8 9 public void up(int velocity) { 10 11 System.out.println("up" + veloci ...
分类:
编程语言 时间:
2020-05-04 13:35:04
阅读次数:
64
题目描述 Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of co ...
分类:
其他好文 时间:
2020-05-03 18:40:49
阅读次数:
162
打开app下面的Request.php进行编辑 <?php namespace app; class Request extends \think\Request { } 添加如下方法, <?php namespace app; class Request extends \think\Reques ...
分类:
Web程序 时间:
2020-05-03 16:35:19
阅读次数:
326
https://zhuanlan.zhihu.com/p/107672198 ?本文来自星友袁佳林的实践分享,他参加了PowerBI星球中的DAX圣经第二版100天学习打卡活动,已持续分享近100天,对DAX的理解自然更深了一些,本文就是他利用DAX解决问题的一种思路。 Think in DAX 之 ...
分类:
其他好文 时间:
2020-05-01 20:50:15
阅读次数:
66
tp5 给的whereOr方法在不仔细阅读文档的情况下会遇到一些问题 先看下代码: $this->modelLineModel->where('status',1)->whereOr(['area1_id'=>2341,'area2_id'=>2])->select(); 想着应该是whereOr里 ...
分类:
其他好文 时间:
2020-04-30 15:08:56
阅读次数:
322
首先使用Composer安装think-captcha扩展包: composer require topthink/think-captcha=1.* 模版内验证码的显示 <div>{:captcha_img()}</div> <div><img src="{:captcha_src()}" alt ...
分类:
Web程序 时间:
2020-04-25 17:33:13
阅读次数:
87
模型会自动对应数据表,模型类的命名规则是除去表前缀的数据表名称,采用驼峰法命名,并且首字母大写。 namespace app\index\model; 设置数据表 use think\Model; class User extends Model{ // 设置当前模型对应的完整数据表名称 prote ...
分类:
Web程序 时间:
2020-04-25 17:28:34
阅读次数:
93
如果你的控制器继承了\think\Controller类的话,则无需自己实例化视图类,可以直接调用控制器基础类封装的相关视图类的方法。 // 渲染模板输出return $this->fetch('hello',['name'=>'thinkphp']); 助手函数 return view('hell ...
分类:
Web程序 时间:
2020-04-24 14:41:24
阅读次数:
73