<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>CodeIgniter 中国开发者社区 - CodeIgniter 问答求助</title>
    <link>https://codeigniter.org.cn/forums/forum-answer-1.html</link>
    <description>Latest 20 threads of CodeIgniter 问答求助</description>
    <copyright>Copyright(C) CodeIgniter 中国开发者社区</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Thu, 11 Jun 2026 16:45:15 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://codeigniter.org.cn/forums/static/image/common/logo_88_31.gif</url>
      <title>CodeIgniter 中国开发者社区</title>
      <link>https://codeigniter.org.cn/forums/</link>
    </image>
    <item>
      <title>构建静态页面问题</title>
      <link>https://codeigniter.org.cn/forums/thread-31238-1-1.html</link>
      <description><![CDATA[访问localhost:8080可以访问初始页面，但是按照手册在构建静态页面访问localhost:8080/home，显示No input file specified.，新人求助。
routes.php文件内容如下：]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>Air2025</author>
      <pubDate>Mon, 20 Jan 2025 05:27:02 +0000</pubDate>
    </item>
    <item>
      <title>为什么分页到第二页报An uncaught Exception was encountered</title>
      <link>https://codeigniter.org.cn/forums/thread-31237-1-1.html</link>
      <description><![CDATA[php：7.4.33
web：nginx
同一个服务器上，很早以前写的网站分页程序正常，但是现在用同样的分页程序就报错：]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>eyouy</author>
      <pubDate>Tue, 07 Jan 2025 03:38:20 +0000</pubDate>
    </item>
    <item>
      <title>Shield适合CI4.5吗？</title>
      <link>https://codeigniter.org.cn/forums/thread-31236-1-1.html</link>
      <description><![CDATA[安装完感觉Shield的路径是错的，按照Shield官方文档安装过程也没出现错误，但是安装后默认显示的路由很奇怪。所以登录界面什么都是无效路径

 Method | Route                   | Name               | Handler                                                       ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>dearfaint</author>
      <pubDate>Thu, 28 Nov 2024 05:37:25 +0000</pubDate>
    </item>
    <item>
      <title>CI 4.3 使用怎么使用predis？</title>
      <link>https://codeigniter.org.cn/forums/thread-31234-1-1.html</link>
      <description><![CDATA[如题，在4.3版本中使用redis作为缓存管理，在env中配置如下：


cache.handler = predis
cache.backupHandler = file
$cache = Services::cache();var_dump(get_class($cache)); 打印结果为：CodeIgniter\\Cache\\Handlers\\FileHandler。
看上去配置没有生效，但是把 hand ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>等等</author>
      <pubDate>Thu, 11 Jul 2024 08:28:47 +0000</pubDate>
    </item>
    <item>
      <title>workerman 和 codeigniter3 报错</title>
      <link>https://codeigniter.org.cn/forums/thread-31233-1-1.html</link>
      <description><![CDATA[workerman 和 codeigniter3 结合使用报错  报错有解决方案吗？]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>qingxing</author>
      <pubDate>Mon, 03 Jun 2024 04:30:08 +0000</pubDate>
    </item>
    <item>
      <title>有没有集成ucenter的教程啊</title>
      <link>https://codeigniter.org.cn/forums/thread-31231-1-1.html</link>
      <description><![CDATA[ci全系列，就没有一个完整集成ucenter的教程嘛]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>eyouy</author>
      <pubDate>Sat, 06 Apr 2024 11:03:50 +0000</pubDate>
    </item>
    <item>
      <title>CI4关于注入问题</title>
      <link>https://codeigniter.org.cn/forums/thread-31230-1-1.html</link>
      <description><![CDATA[使用构建器
-&gt;select($field)
-&gt;orderBy($order)
两个方法的参数如果通过前端传参获得直接赋值, 会造成注入问题

目前处理办法是
1. 对 $field 进行字符串处理, 转义及替换空格回车等
2. 对 $order 进行数组拆分后, 转义及替换空格回车等 



 ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>supposer</author>
      <pubDate>Wed, 06 Mar 2024 05:46:22 +0000</pubDate>
    </item>
    <item>
      <title>有开启事务，事务不回滚问题</title>
      <link>https://codeigniter.org.cn/forums/thread-31229-1-1.html</link>
      <description><![CDATA[有开启事务，事务不回滚问题]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>huangbo888</author>
      <pubDate>Mon, 04 Mar 2024 06:24:19 +0000</pubDate>
    </item>
    <item>
      <title>读取数据时，出现数据库异常的问题，解决一半现在是...</title>
      <link>https://codeigniter.org.cn/forums/thread-31228-1-1.html</link>
      <description><![CDATA[读取数据时，出现数据库异常的问题，解决一半现在是人工去捕捉，不是框架捕捉的，很麻烦，希望能在Exception里面去处理


$model = new IroboxWarehouse();
try{
    $model-&gt;db-&gt;transStart();

    $status = $model-&gt;select(\'11111\')-&gt;where(\'pc_name\',\'aa\')-&gt;first ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>huangbo888</author>
      <pubDate>Mon, 04 Mar 2024 06:19:10 +0000</pubDate>
    </item>
    <item>
      <title>问题，在创建、更新、删除数据时，若出现数据库异常，...</title>
      <link>https://codeigniter.org.cn/forums/thread-31227-1-1.html</link>
      <description><![CDATA[问题：在创建、更新、删除数据时，若出现数据库异常，希望在Exception里面捕捉到



$model = new IroboxWarehouse();
try{
    $model-&gt;db-&gt;transStart();
    $status = $model-&gt;insert($data);
    $model-&gt;db-&gt;transComplete();
} catch(Exception $e) {
    $model ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>huangbo888</author>
      <pubDate>Mon, 04 Mar 2024 06:14:55 +0000</pubDate>
    </item>
    <item>
      <title>CI3.1.13  force_download 没反应，附代码</title>
      <link>https://codeigniter.org.cn/forums/thread-31226-1-1.html</link>
      <description><![CDATA[前端为


到echo $data这·一行运行是正常的，浏览器能显示文本中的内容；但把下面两句注释去掉后执行，没有任何反应，浏览器调试，发现执行也是200，搜索N多，不明白是哪里有问题，新入CI请指教 ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>iginter</author>
      <pubDate>Thu, 04 Jan 2024 10:35:43 +0000</pubDate>
    </item>
    <item>
      <title>初学CODEIGNITE</title>
      <link>https://codeigniter.org.cn/forums/thread-31216-1-1.html</link>
      <description><![CDATA[本人按教程，去学习，为什么到了访问 news的时候出现其他访问像pages   home  about这些都可以，我严谨的学习，到底问题在哪，有谁能教一下]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>joeyuan</author>
      <pubDate>Wed, 16 Aug 2023 07:20:14 +0000</pubDate>
    </item>
    <item>
      <title>codeigniter4 使用update()更新数据库时，出现错误</title>
      <link>https://codeigniter.org.cn/forums/thread-31215-1-1.html</link>
      <description><![CDATA[codeigniter4 使用update()更新数据库时，出现错误，折腾了好久。

我的代码：
$model = new DepCategoryModel();

$where = array(\'dep_category_id\'=&gt;2);
$data = array(\'dep_category_title\'=&gt;\'888888888888888888\');
$model-&gt;update($data, $where);


最终打印出来 ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>gdcool</author>
      <pubDate>Tue, 08 Aug 2023 10:21:20 +0000</pubDate>
    </item>
    <item>
      <title>初学者提问 ,php.ini 文件找不到</title>
      <link>https://codeigniter.org.cn/forums/thread-31214-1-1.html</link>
      <description><![CDATA[我要找此文件的原因是在安装composer require phpoffice/phpspreadsheet ，是报错 [ErrorException]                                       
  pcntl_signal() has been disabled for security reasons                           
 
   查了原因，要在ini文件中修改此 ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>luowenwenyou</author>
      <pubDate>Wed, 26 Jul 2023 08:15:41 +0000</pubDate>
    </item>
    <item>
      <title>遇到问题，连接数据库DBDriver设置为ODBC时，访问出错</title>
      <link>https://codeigniter.org.cn/forums/thread-31213-1-1.html</link>
      <description><![CDATA[\'DSN\'         =&gt; \'DRIVER={DM8 ODBC DRIVER};Server=localhost:5236;Database=MAIN\',
        \'hostname\'    =&gt; \'localhost\',
        \'username\'    =&gt; \'SYSDBA\',
        \'password\'    =&gt; \'SYSDBA\',
        \'database\'    =&gt; \'MAIN\',
]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>chimlle</author>
      <pubDate>Sat, 24 Jun 2023 12:19:59 +0000</pubDate>
    </item>
    <item>
      <title>数据库读写分离</title>
      <link>https://codeigniter.org.cn/forums/thread-31209-1-1.html</link>
      <description><![CDATA[做数据库读写分离的时候。怎样能保证增删改走主节点，查随机走主或者从节点？并且保证当前web请求，走主节点后所有的后续各类查询都复用当前数据库连接，都走主节点，这样保证查询修改数据一致。

 ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>sunyp</author>
      <pubDate>Tue, 16 May 2023 06:21:45 +0000</pubDate>
    </item>
    <item>
      <title>关于CI4.3上传文件目录WRITEPATH的页面访问问题</title>
      <link>https://codeigniter.org.cn/forums/thread-31208-1-1.html</link>
      <description><![CDATA[在CI4.3中，默认上传文件时，只能上传到它已经配置的WRITEPATH目录（真实路径是 “项目名/writable”目录），而我们在页面中可以访问的映射路径的根目录base_url() [真实路径是“项目名/public” 目录]，默认的配置是可以上传文件 的目录 不能在页面中访问，而可以在php ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>songfeng163</author>
      <pubDate>Wed, 19 Apr 2023 06:15:09 +0000</pubDate>
    </item>
    <item>
      <title>CI4的路由设置能否GET传递</title>
      <link>https://codeigniter.org.cn/forums/thread-31207-1-1.html</link>
      <description><![CDATA[$routes-&gt;add(\'post_(:num)\', \'Post::detail/$1\');
1.比如这个$1表示页码，添加其它条件的时候会继续增加/$2/$3，能否不通过斜杠的方式添加条件，以GET来获取
$routes-&gt;add(\'post_(:num)_(:num)\', \'Post::detail/$1?cateID=$2\');
2.控制器里页码初始默认为1的情况，URL ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>kao10324</author>
      <pubDate>Tue, 18 Apr 2023 09:33:11 +0000</pubDate>
    </item>
    <item>
      <title>求助！！！</title>
      <link>https://codeigniter.org.cn/forums/thread-31191-1-1.html</link>
      <description><![CDATA[一般我们使用下载功能都是给一个web服务器下文件的 URL 让用户通过 URL 下载，但是有些时候我们这里需要直接发送文件，不能给 URL 或者文件根本就不在 web 的目录下，这时就需要直接发送文件给用户。
在 Yii 中我可以使用 sendfile 函数来解决这个问题，如果是在 ci 框 ...]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>sk811229</author>
      <pubDate>Tue, 04 Oct 2022 04:00:00 +0000</pubDate>
    </item>
    <item>
      <title>Phpword的集成应用</title>
      <link>https://codeigniter.org.cn/forums/thread-31190-1-1.html</link>
      <description><![CDATA[CI4.0

1.下载Phpword之后，放在ThirdParty/phpoffice这个目录


2.打开config配置文件Autoload.php ,如下增加一行

$psr4 = [
]]></description>
      <category>CodeIgniter 问答求助</category>
      <author>icen21</author>
      <pubDate>Thu, 01 Sep 2022 13:56:36 +0000</pubDate>
    </item>
  </channel>
</rss>