• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pagination on homepage

#3
(11-25-2017, 11:13 PM)skunkbad Wrote: Something like this in a Welcome controller:
Code:
public function index(){
  $this->page();
}

public function page( $page = 1 ){
  echo 'You are on page ' . $page;
}

Then in routes something like:


Code:
$route['(:num)'] = 'welcome/page/$1';

Thank you. This helped 100%.
Reply


Messages In This Thread
Pagination on homepage - by phoenix9080 - 11-25-2017, 04:25 PM
RE: Pagination on homepage - by skunkbad - 11-25-2017, 11:13 PM
RE: Pagination on homepage - by phoenix9080 - 12-04-2017, 12:46 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.