thinkphp5.1 多表 union操作 之后分页
$field = 'id,title,cover'; $isql = Db::name('a')->field($field)->where('title|description', 'like', "%$keyword%") …
记录学习和工作
$field = 'id,title,cover'; $isql = Db::name('a')->field($field)->where('title|description', 'like', "%$keyword%") …
$resource = Db::table($sql)->paginate(10)->each( function ($item) { if(empty($item['cover']) && $item['rel…
在 tomcat / conf 目录下,设置 logging.properties ,增加参数 java.util.logging.ConsoleHandler.encoding = GBK即可。
类的自动加载:https://zhuanlan.zhihu.com/p/100682759 配置文件Config类:https://zhuanlan.zhihu.com/p/100710197 容器Container类:https://zh…
转自:https://zhuanlan.zhihu.com/p/100640786 从代码说起: // 入口文件 // 执行应用并响应 Container::get('app')->run()->send(); 获取容器中的'a…
运行了public目录下的index.php文件后,tp的运行整个运行过程的解析 入口文件index.php代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 <?p…
转自https://blog.csdn.net/donglingjiu/article/details/80673370
转自https://blog.csdn.net/maysh2008/article/details/106357578 6.0中间件分为系统中间件和应用中间件,系统中间件为核心框架内置的中间件,应用中间件是在应用里面创建的中间件。 中间件的…