XF 2.0 Widget style sidebar w/ ParameterBag

AndrewSimm

Well-known member
I have a some widgets that display statistics on 3 different pages, based on results in the querystring. Currently I use the widget system, and it works; however, I would like to use ParameterBag, which doesn't work with the render function in widgets. I can create one template and put on each of these pages, but how can I create a file to include into different controllers?
 
To better describe what I am trying to do...

I have 3 controllers that need to utilize the same bit of code. I would like to create one file and then include it within each controller. Is there a preferred way of doing this?
 
Back
Top Bottom