1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Callback: Pass parameter in $params or access with $template

Discussion in 'XenForo Development Discussions' started by Marcus, Aug 9, 2015.

  1. Marcus

    Marcus Well-Known Member

    I want to fetch the page number. This works within the callback php:
    PHP:
    ZEND_DEBUG::dump($template->getParam('page'));
    However I wonder if it is not better to put the page number in the <xen:callback /> as parameter.

    I also wonder how to access the current page number (1,2,3,4,5 ...) in forum_view.
     

Share This Page