Tags:
Permalink Reply by Tuan Pham Ngoc on August 12, 2011 at 5:04am Hi
The solution can be :
- Add the pagination.php file to a folder in your component .
- In method getPagination in your model, use the code below :
function getPagination(){
if (empty($this->_pagination)) {
require_once JPATH_COMPONENT.DS.'helpers'.DS.'pagination.php';
$this->_pagination = new JPagination( $this->getTotal(), $this->getState('limitstart'), $this->getState('limit') );
}
return $this->_pagination;
}
(Note that in this case, my custom pagination.php is placed under helpers folder in my component. You need to change the require_once command to poin the correct path of your custom pagenavigation.php .
Hope this help !
Tuan
© 2012 Created by Amy Stephen.