Overwriting actionBbCodes()

Status
Not open for further replies.
Joined
Oct 6, 2010
Messages
105
Here's my current PHP (as suggested by Mike):
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::setParams() 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.
 
Status
Not open for further replies.
Top