<?php namespace app\admin\controller; use think\Controller; use think\DB; class Index extends Controller { // public function _initialize() // { // if ...
分类:
其他好文 时间:
2020-09-18 04:13:46
阅读次数:
52
恢复内容开始 TP5是MVC模式,只要URL中能包含,模块/控制器/方法/参数等等这些东西,就可以返回一个页面了。 一个单页,可以随便用mvc的方式来做。 一个网站,不仅仅包含一个单页,那么我们如何管理多页面的网站呢? 按照思路,肯定要配置很多路由才对,那么tp5还有很多cms站点,其实,都是通过栏 ...
分类:
Web程序 时间:
2020-09-17 21:34:48
阅读次数:
40
一,修改配置文件 Library/ThinkPHP/Conf/convention.php SESSION_TYPE => "redis" 二,添加session redis驱动 Library/ThinkPHP/Think/Session/Driver/Redis.class.php <?phpn ...
分类:
其他好文 时间:
2020-09-17 14:14:49
阅读次数:
47
1.ftp自动上传文件脚本 #!/bin/bash ftp -n<<! open 192.168.220.129 user ls toor binary hash cd /path/to/backup lcd /path/to/need/backup prompt mkdir `date +"%Y% ...
分类:
Web程序 时间:
2020-09-12 21:26:54
阅读次数:
64
最近用到thinkPHP5链表查询比较多,但是链表查询如何打印sql语句怎么试都不对,所以研究了一下usethink\Db;dump(Db::table(‘table_name‘)->getLastSql());或者usethink\Db;dump(Db::getLastSql());
分类:
数据库 时间:
2020-09-09 19:18:11
阅读次数:
85
In my recent project I need to figure out the logic how fields in table CRMD_PRICING are populated. Take several of them highlighted below for example ...
分类:
数据库 时间:
2020-08-27 13:16:04
阅读次数:
63
This is an in-detail account of the Raspberry Pi boot process collected from various sources, mainly from the official forums. First, you need to know ...
分类:
Web程序 时间:
2020-08-12 15:43:48
阅读次数:
87
You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. 要求如果 ...
分类:
数据库 时间:
2020-07-30 22:18:19
阅读次数:
265
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You need to h ...
分类:
其他好文 时间:
2020-07-29 15:41:09
阅读次数:
86
Task Scheduler (M) 题目 You are given a char array representing tasks CPU need to do. It contains capital letters A to Z where each letter represents a ...
分类:
其他好文 时间:
2020-07-29 10:27:27
阅读次数:
69