Last days I am playing with CI's pagination. I already set up config and the thing works perfectly. In the function of controller I have created some IF statements which are checking url.
IF url is localhost/CI/index.php/controller/function/news
THEN return first page of results from database -> first page
BUT IF url is localhost/CI/index.php/controller/function/news/10
THEN return second page of results from database -> second page
But there's problem because CI's pagination works with navigation only if there is number of results after the controller's function -> localhost/CI/index.php/controller/function/10 .
Is there any workaround to do navigation with url like this localhost/CI/index.php/controller/function/news/10 ? (I have news, categories and other functions where I would like to show some basic informations about it.)