getElementSearcher(); $search_form = $this->createForm( new ElementSearchForm(), $search_object->getParams(), array( 'tags' => $tags = $this->getTagsArray() ) ); $add_form = $this->createForm( new ElementAddForm(), array(), array( 'tags' => $tags, 'groups' => $this->getGroupsArray(), ) ); return array( 'user' => $this->getUser(), 'add_form' => $add_form->createView(), 'search_form' => $search_form->createView(), 'elements' => $search_object->getElements($this->getDoctrine(), $this->getUserId()) ); } }