bill78
Member
Hello
I am using a helper to vary some code that's showing adverts. Within my helper I have access to visitor info with :
How is it possible to obtain information about the thread being viewed when the help is called from the thread view or node view pages?
At the moment I'm passing it back from the template, but I was wondering as the ControllerPublic/Thread has already done the business whether there was a way to access in the data directly.
Hope that makes sense!
I am using a helper to vary some code that's showing adverts. Within my helper I have access to visitor info with :
PHP:
$visitor = XenForo_Visitor::getInstance();
How is it possible to obtain information about the thread being viewed when the help is called from the thread view or node view pages?
At the moment I'm passing it back from the template, but I was wondering as the ControllerPublic/Thread has already done the business whether there was a way to access in the data directly.
Hope that makes sense!