On catalog page there is a block that adds paging navigation - Mage_Page_Block_Html_Pager. It has very useful methods - getPreviousPageUrl and getNextPageUrl.
Is there any way to get values from these functions outside of this block scope, without recreating it second time?
catalog/product_listto start rendering. In fact,catalog/product_listconfigures the pager block in its method_beforeToHtml(). If you call the snippet above before_beforeToHtml()has executed, you would get no results or even a fatal error. – fmrng May 24 '13 at 14:19