XF 1.5 Get route variables like "thread_id" in helper file.

sajal

Active member
Seems that following only works in controller.

$threadId = $this->_input->filterSingle('thread_id', XenForo_Input::UINT);

How to do the same in Helper file or some other file like model?
 
Just add it as an argument to your methods and pass it in instead.
 
Last edited:
Back
Top Bottom