/**
  * @param AddPage $page
  */
 public function addPage(AddPage $page)
 {
     $this->headerIndex();
     $this->headerData();
     $this->view->showView();
     $label = $page->getLabel();
     $title = $page->getTitle();
     $body = $page->getBody();
     $slug = $page->getSlug();
     if ($label && $title && $body && $slug) {
         $page = new PageModel($label, $title, $body, $slug);
         $page->save();
         $this->redirectAdminControllers('home', 'log');
     }
     $this->view->part('footer');
 }