Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用CodeIgniter进行分页将删除';链接';数据库表的类型_Codeigniter - Fatal编程技术网

使用CodeIgniter进行分页将删除';链接';数据库表的类型

使用CodeIgniter进行分页将删除';链接';数据库表的类型,codeigniter,Codeigniter,我在CodeIgniter中有以下地址: /movprod/countries/movies-produced-in-the-united-states-dh88075452 通过分页“movies-producted-in-the-united-united-states-dh88075452”被删除: 例如,/movprod/countries/10 是什么原因导致错误,因为我需要最后4个数字(表的id)从数据库中获取数据。 如何保持链接?Codeigniter分页有许多配置,其中一个是它

我在CodeIgniter中有以下地址:

/movprod/countries/movies-produced-in-the-united-states-dh88075452
通过分页“movies-producted-in-the-united-united-states-dh88075452”被删除: 例如,
/movprod/countries/10
是什么原因导致错误,因为我需要最后4个数字(表的id)从数据库中获取数据。
如何保持链接?

Codeigniter分页有许多配置,其中一个是它将作为页码的段,默认为“3”,您需要将其更改为“4”

在分页配置中,请使用:

$config['uri_segment'] = 4;
正如你在这里看到的:


您能分享您的分页配置吗?