XF 2.2 How to change the viewClass?

Robert9

Well-known member
My add-on uses this code from the XFRM

Code:
/** @var \XFRM\ControllerPlugin\Overview $overviewPlugin */
        $overviewPlugin = $this->plugin('XFRM:Overview');

        return $overviewPlugin->actionFilters();

=> i will end at /resources/


But I want to end at /somewhere_else/

if i use:

Code:
/** @var \XFRM\ControllerPlugin\Overview $overviewPlugin */
        $overviewPlugin = $this->plugin('XFRM:Overview');

        $test = $overviewPlugin->actionFilters();
       print_r($test);

I can see all the vars from $viewParams

With this $viewParams I could do something like

return $this->view('XFRM:somewhere_else', 'some_template', $viewParams);


But how can i get the vars for $viewParams from $test?
 
Back
Top Bottom