14/11/2011 7:20am

PHP | Problem - Pagination 2 Problem


PHP>>>>>>>>>>>>>>>>

public function LightboxGalleryPagination($per_page=3) {

$images = $this->LightboxGalleryImages(null, 'SortOrder');

$start = (isset($_GET['start'])) ? (int)$_GET['start'] : 0;

$page = $images->getRange((int)$_GET['start'],$per_page);

var_dump($per_page);die;// This show the Value set in template
$page->setPageLimits($start,$per_page, $images->count());// inside here, it Does NOT use the value from template


return $page;

}
Template >>>>>>>>>>>>>>>
<% control LightboxGalleryPagination(6) %>
$Attachment.CroppedImage(100,100)
<% end_control %>


Post Comment