imported_King Kovifor
OMG Member
- Joined
- Oct 6, 2010
- Messages
- 105
Here's my current PHP (as suggested by Mike):
However, that says:
Anyone know of a way to modify the viewParams of the template without copy & pasting their copyrighted code?
Edit -- its not a child of the View class, so you gotta modify the params directly.
PHP:
public function actionBbCodes()
{
$viewParams = parent::actionBbCodes();
$viewParams->setParams(array('customBbCodes' => $this->getModelFromCache('KingK_BbCodeManager_Model_CustomBbCode')->getAllActiveCustomBbCodes()));
return $viewParams;
}
However, that says:
Fatal error: Call to undefined method XenForo_ControllerResponse_View:etParams() in /Users/Jeremy/Sites/xen/library/KingK/BbCodeManager/ControllerPublic/Help.php on line 8
Anyone know of a way to modify the viewParams of the template without copy & pasting their copyrighted code?
Edit -- its not a child of the View class, so you gotta modify the params directly.