
thinkphp5.0 | 安装thinkphp
环境要求: PHP >= 5.4.0 PDO PHP Extension MBstring PHP Extension CURL PHP Extension 1. 官网下载 http://www.thinkphp.cn/down.ht...
环境要求: PHP >= 5.4.0 PDO PHP Extension MBstring PHP Extension CURL PHP Extension 1. 官网下载 http://www.thinkphp.cn/down.ht...
{$html|raw} 只需在后面加上|raw即可
获取header中的参数 $appkey = Request::instance()->header();
方法 /** *获取某个目录下的php文件名的函数 */ function getControllers($dir) { $pathList = glob($dir . '/*.php'); $res = []; foreach($path...
/** * 修改扩展配置文件 * @param array $arr 需要更新或添加的配置 * @param string $file 配置文件名(不需要后辍) * @return bool */ function extraconfig(...
将官方下载的数据包放入static 在需要的地方引入 <script id="container" name="content" type="text/plain" ></script> {js href="__ST...
//方法位置/thinkphp/library/think/Config/---get方法 // 配置文件位置application/extra/文件名.php //文件内容格式 return [ ] //使用 use think\Conf...
function thumb($src = '', $width = 500, $height = 500, $type = 1, $replace = false) { $src = './'.$src; if(is_file($src)...
<label class="layui-form-label">图片</label> <a class="layui-btn" id="image" style="float: left;">...
某日。因为一个项目。控制器我是这么写的 /** * get admin/Picture/index * 显示所有图册信息 * @return view */ public function index() { $data = $this-&...