AndyB
Well-known member
I have the following code which is currently overwriting the actionIndex in the \XF\Admin\Controller\Index.php file.
What is the proper way to add my variables to the $viewParams without completely overwriting the actionIndex.
Thank you.
PHP:
<?php
namespace Andy\AdminStatistics\XF\Admin\Controller;
class Index extends XFCP_Index
{
public function actionIndex()
{
<snip>
return $this->view('XF:Index', 'index', $viewParams);
}
}
What is the proper way to add my variables to the $viewParams without completely overwriting the actionIndex.
Thank you.
Last edited: