【发布时间】:2015-01-04 22:36:23
【问题描述】:
我的网址是http://example.com/app/index.php/app/view/11/,所以我的想法是我已经在一个产品页面上,该页面从 url(11) 中的段 (3) 获取数据,现在每个产品可能在表格中有一些记录,我需要分页用于这些记录。
我试过的代码是:
$config['base_url'] = 'http://localhost/feedapp/index.php/app/view/' . $this->uri->segment(3) . '/';
但它不起作用。
【问题讨论】:
标签: php codeigniter pagination