Hi all,
I am using cakephp 1.26.
I am doing some self-learning about Pagination in CakePHP.
I have tested the following code in my localhost, and it works fine.
I have altered a little change to the second line of code, and found that
nothing change to the result.
1st version:
$this->paginate=array('conditions'=>array('Testing.zero'=>'0'), 'limit' => 3);
$w = $this->paginate();
$this->set('postVariable', $w);
2nd version:
$this->paginate=array('conditions'=>array('Testing.zero'=>'0'), 'limit' => 3);
$w = $this->paginate('Testing');
$this->set('postVariable', $w);
3rd version:
$this->paginate=array('conditions'=>array('Testing.zero'=>'0'), 'limit' => 3);
$w = $this->paginate('helloworld');
$this->set('postVariable', $w);
4th version:
$this->paginate=array('conditions'=>array('Testing.zero'=>'0'), 'limit' => 3);
$w = $this->paginate($this->helloworld);
$this->set('postVariable', $w);
I have no idea what I should input into the brackets of $this->paginate()