public function addAction()
 {
     $formCategory = new CategoryForm();
     $request = $this->getRequest();
     if ($request->isPost()) {
         $category = new Category();
         $formCategory->setInputFilter($category->getInputFilter());
         $formCategory->setData($request->getPost());
         if ($formCategory->isValid()) {
             $category->exchangeArray($formCategory->getData());
             $this->categoryTable->saveCategory($category);
             return $this->redirect()->toRoute('home');
         }
     }
     return new ViewModel(array('form' => $formCategory));
 }