Fixing 'Call to undefined method' in View->setTokens()