使用CodeIgniter进行分页将删除';链接';数据库表的类型
我在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分页有许多配置,其中一个是它
/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;
正如你在这里看到的:
您能分享您的分页配置吗?