Welcome Guest, Not a member yet? Register   Sign In
Pagination : Page One Params Issue
#4

(This post was last modified: 12-20-2016, 03:30 AM by Diederik.)

You can't call using an existing (and documented) configuration option a hack, but ok Wink

Normally I would want my URL structure like this:

http://example.com/index.php/news (latest display the latest 25 items)
http://example.com/index.php/news/page/2 (latest display the 25-50 items)
etc

Just for SEO purposes I like to keep my URL's clean and short so I can use /news in my main navigation instead of /news/pages/1.

In my (public) news controller I would use:
PHP Code:
public function __construct()
    {

        
parent::__construct();

        
// configure your pagination

    
}

public function 
index() 
{
        
$this->page(1);
}

public function 
page($pagination_id
{
        
// Load the data and view etc

Reply


Messages In This Thread
Pagination : Page One Params Issue - by Jurden - 12-20-2016, 02:01 AM
RE: Pagination : Page One Params Issue - by Diederik - 12-20-2016, 03:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB