<?xml version="1.0" encoding="utf-8"?>
<!--  RSS generated by phpcms.cn RSS Builder [2026-04-07 13:39:24]  --> 
<rss version="2.0" xmlns:im="http://purl.org/rss/1.0/item-images/" xmlns:dc="http://purl.org/dc/elements/1.1/" >
<channel>
<pubDate>Tue, 07 Apr 2026 13:39:24 +0800</pubDate>
<lastBuildDate>Tue, 07 Apr 2026 13:39:24 +0800</lastBuildDate>
<docs>https://www.pweb123.com</docs>
<link>https://www.pweb123.com</link>
<title>Thinkphp</title>
<image>
<title>Thinkphp</title>
<url><![CDATA[]]></url>
<link>https://www.pweb123.com</link>
</image>
<webMaster>https://www.pweb123.com</webMaster>
<generator>https://www.pweb123.com</generator>
<ttl>60</ttl>
<dc:creator>https://www.pweb123.com</dc:creator>
<dc:date>Tue, 07 Apr 2026 13:39:24 +0800</dc:date>
<item>
<title><![CDATA[Thinkphp中的collection用法]]></title>
<link><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/1235.html]]></link>
<description><![CDATA[什么是 Collection？在 ThinkPHP 中，当你使用 select() 查询数据库时，默认返回的是一个 think  Collection 对象（在配置文件中可设置）。它看起来像数组，但其实是一个增强型的对象。你可以把它想象成一个带了各种工具箱的数组。如何创建一个 Collection？除了数据库查询自   ]]></description>
<pubDate>2026-03-24 09:01:03</pubDate>
<guid><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/1235.html]]></guid>
<author>https://www.pweb123.com</author>
</item>
<item>
<title><![CDATA[Thinkphp的模型中的$append用法]]></title>
<link><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/1234.html]]></link>
<description><![CDATA[在模型开发中，我们经常遇到这种需求：数据库里只有 create_time（时间戳），但前端需要 create_time_text（格式化日期）；或者数据库只有 content，但我们需要一个自动生成的 summary（摘要）。这时候，$append（追加属性）就是你的秘密武器。$append 是模型类的一个属性，用于   ]]></description>
<pubDate>2026-03-22 22:24:35</pubDate>
<guid><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/1234.html]]></guid>
<author>https://www.pweb123.com</author>
</item>
<item>
<title><![CDATA[thinkphp5常用查询where写法]]></title>
<link><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/1231.html]]></link>
<description><![CDATA[一、基础数组格式这种方式是 TP5 最常用的数组查询格式，适合简单到中等复杂度的查询。1  等值查询适用于 =、&lt;&gt;、&gt;、&lt; 等简单条件，默认是等值匹配。  基础写法：默认=匹配$where[&amp; 39;status&amp; 39;]=1;  等同于status=1$where[&amp; 39;id&amp; 39;]=[&amp; 39;&gt;&amp; 39;,10];  id&gt;10$where[&amp; 3   ]]></description>
<pubDate>2026-01-21 21:54:58</pubDate>
<guid><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/1231.html]]></guid>
<author>https://www.pweb123.com</author>
</item>
<item>
<title><![CDATA[tp下order和orderRaw用法和区别]]></title>
<link><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/1230.html]]></link>
<description><![CDATA[一、基础用法与定义1  order 方法（安全的排序方法）order 是 TP5 封装的安全排序方法，主要用于常规的字段排序，会自动对字段名进行转义处理，防止 SQL 注入，是日常开发中最常用的排序方式。基本语法：  单个字段排序Db::name(&amp; 39;user&amp; 39;)-&gt;order(&amp; 39;id&amp; 39;,&amp; 39;des   ]]></description>
<pubDate>2026-01-08 17:31:29</pubDate>
<guid><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/1230.html]]></guid>
<author>https://www.pweb123.com</author>
</item>
<item>
<title><![CDATA[thinkphp出现unserialize(): Error at offset 0 of 1853 bytes]]></title>
<link><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/990.html]]></link>
<description><![CDATA[<img src=https://www.pweb123.com/uploadfile/2023/1023/thumb_150_150_20231023094436983.png border='0' /><br />thinkphp网站搬家出现unserialize错误这种情况一般都是缓存引起的，网站搬家前后环境可能不一致，造成对之前的缓存无法反序列化解析，只需要删除runtime里边的缓存即可。扩展：eyoucms出现报错  corelibrary  think  cache  driver  File php 第117行左右 unserialize(): Error at of   ]]></description>
<pubDate>2023-10-23 21:37:48</pubDate>
<guid><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/990.html]]></guid>
<author>https://www.pweb123.com</author>
</item>
<item>
<title><![CDATA[thinkphp5.0 $this->result报错 variable type error： array]]></title>
<link><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/975.html]]></link>
<description><![CDATA[[0]InvalidArgumentExceptioninResponse phpline316variabletypeerror：array这话意思明白，就是你传入了一个数组，可这是啥意思？我不就是传数组让你转化给前端吗？我再看Response php哦，原来72行指定路径了，再看核心文件夹指定的有json,jsonp,xml没有数组，哦，原来是缺第四个参   ]]></description>
<pubDate>2023-07-31 22:12:07</pubDate>
<guid><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/975.html]]></guid>
<author>https://www.pweb123.com</author>
</item>
<item>
<title><![CDATA[有thinkphp5.1开发的TSCMS基础功能完成上线]]></title>
<link><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/844.html]]></link>
<description><![CDATA[<img src=https://www.pweb123.com/uploadfile/2022/0603/thumb_150_150_20220603111441290.png border='0' /><br />一直想开发自己的cms，但是一直忙忙忙，背后没有资金支持，注定我们这些自由开发者不能花费太多时间在这上面，但是抽空开发点，慢慢的TSCMS基础功能都已经成型，剩下的只需要开发一下辅助功能即可，目前实现的功能有：1、权限管理（1）管理员添加设置和修改（2）权限组管理（3）后台   ]]></description>
<pubDate>2022-06-03 23:04:37</pubDate>
<guid><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/844.html]]></guid>
<author>https://www.pweb123.com</author>
</item>
<item>
<title><![CDATA[thinkphp5.1对接ueditor（自定义上传接口）]]></title>
<link><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/843.html]]></link>
<description><![CDATA[<img src=https://www.pweb123.com/uploadfile/2022/0603/thumb_150_150_20220603110107993.png border='0' /><br />​由于ueditor官方提供了 php的接口，所以很多人都是直接使用他自带的那个了，但是如果要用到thinkphp我们自己开发的上传接口，则官方没有给出更多的解决方案，解决方法：（1）自己封装一个上传类：ueditor phpclass Ueditor extends Base{   优先加载protected function init   ]]></description>
<pubDate>2022-06-03 22:53:01</pubDate>
<guid><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/843.html]]></guid>
<author>https://www.pweb123.com</author>
</item>
<item>
<title><![CDATA[tp5.1安装汉字转拼音扩展]]></title>
<link><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/839.html]]></link>
<description><![CDATA[thinkphp本身没有内置汉字转拼音功能，需要依赖第三方的Overtrue，OverTrue的github地址是：https:  github com overtrue pinyin，目前已经更新到了4 0版本，安装方式：$composerrequire&quot;overtrue pinyin:~4 0&quot;然后在文件头部引入use Overtrue  Pinyin  Pinyin;比如：文件路径 Web  ap   ]]></description>
<pubDate>2022-03-29 08:16:24</pubDate>
<guid><![CDATA[https://www.pweb123.com/kuangjia/thinkphp/839.html]]></guid>
<author>https://www.pweb123.com</author>
</item>
</channel>
</rss>
