Application_Resource_Paginator
1 2 3 4 56 7 8 9 1011 12 13 14 1516 17 18 19 2021 22 23 24 2526 27 28 29 3031 32 33 34 35 | class Core_Application_Resource_Paginator extends Zend_Application_Resource_ResourceAbstract { /** * Set the default scrolling style for the Paginator * * @param string $scrollingStyle * @return Core_Application_Resource_Paginator */ public function setDefaultScrollingStyle($scrollingStyle) { Zend_Paginator::setDefaultScrollingStyle($scrollingStyle); return $this; } /** * Set the default view partial for the Paginator * * @param string|array $viewPartial * @return Core_Application_Resource_Paginator */ public function setDefaultViewPartial($viewPartial) { Zend_View_Helper_PaginationControl::setDefaultViewPartial($viewPartial); return $this; } /** * Defined by Zend_Application_Resource_Resource * * @return void */ public function init() { } } |
1 2 3 | // Pass to Zend_Application like so: resources.paginator.defaultScrollingStyle = "Sliding" resources.paginator.defaultViewPartial = "paging.phtml" |
Comments
You must login before commenting on a snippet. If you do not have an account, please register.
Snippet description
Allows you to configure the Paginator globally. This is helpful if you use a standard view partial for all pagination.
Snippet details
- Created:
-
leek
- Edited:
-
leek
- Revision Id:
- 105
- Edit Message:
- Initial Release
- Tags:
- zend-application zend-application-resource
- Comments:
- 0
- Views:
- 120
- Points:
- 1 (1 votes)