public function view() { $formType = AttributeFormType::getByID($this->aftID); $attributes = $formType->getAttributeObjects(); $token = new Token(); $this->set('attributes', $attributes); $this->set('aftID', $this->aftID); $this->set('token', $token->generate('attribute_form_' . $this->bID)); }