Cake php provide inbuilt pagination we can use this by using Paginator Helper.
To use pagination first we need to use Paginator Component public $components = array('Paginator','Auth'); now add the below code in your controller here i am using pagination for users table
FindNerd is the right place to resolve PHP language problems. Here you can post PHP Questions and Answers.
If you have any query on PHP language, Post it at FindNerd’s – PHP Developer Forum.
To use pagination first we need to use Paginator Component public $components = array('Paginator','Auth'); now add the below code in your controller here i am using pagination for users table
public function index() {
$this->User->recursive = 0; $this->set('users', $this->Paginator->paginate()); }
- See full Blog at: Paginator Helper in CakePHP
FindNerd is the right place to resolve PHP language problems. Here you can post PHP Questions and Answers.
If you have any query on PHP language, Post it at FindNerd’s – PHP Developer Forum.
No comments:
Post a Comment