/** Add a new period - won't be used much!
  */
 public function addperiodAction()
 {
     $form = new PeriodForm();
     $form->submit->setLabel('Add a new period');
     $this->view->form = $form;
     if ($this->getRequest()->isPost() && $form->isValid($this->_request->getPost())) {
         if ($form->isValid($form->getValues())) {
             $periods = new Periods();
             $periods->add($form->getValues());
             $this->_flashMessenger->addMessage('Record created!');
             $this->_redirect($this->_redirectUrl . 'periods');
         } else {
             $form->populate($form->getValues());
         }
     }
 }