<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
</block>
The above represents the pagination of a product collection. It displays page size, products per page, current (and next, previous, etc) page, sort action, etc. Normally i'd call this with a getChild( ) call.
Now, how can I recreate the above function call in something like a widget? Where I must use other methods than the layout.xml and getChild calls to generate blocks.
For example:
$this->_pager = $this->getLayout()
->createBlock('catalog/product_list_toolbar')->setTemplate('catalog/product/list/toolbar.phtml');
This accomplishes the first part of the block/template call.
and:
$this->_pager = $this->getLayout()
->createBlock('page/html_pager', 'product_list_toolbar_pager');
This accomplishes the second part of the block/template call.
How can I combine these two related pieces of functionality? I need to return them with a toHtml( ) function call.