/**
  * View documents category page action
  *
  * @param void
  * @return null
  */
 function view()
 {
     if ($this->active_document_category->isNew()) {
         $this->httpError(HTTP_ERR_NOT_FOUND);
     }
     // if
     if (!$this->active_document_category->canView($this->logged_user)) {
         $this->httpError(HTTP_ERR_FORBIDDEN);
     }
     // if
     $this->setTemplate(array('template' => 'index', 'controller' => 'documents', 'module' => DOCUMENTS_MODULE));
     $page = (int) $this->request->get('page');
     if ($page < 1) {
         $page = 1;
     }
     // if
     $per_page = 10;
     list($documents, $pagination) = Documents::paginateByCategory($this->active_document_category, $this->logged_user->getVisibility(), $page, $per_page);
     $this->smarty->assign(array('documents' => $documents, 'pagination' => $pagination));
     js_assign(array('pin_icon_url' => get_image_url('icons/pinned.16x16.gif'), 'unpin_icon_url' => get_image_url('icons/not-pinned.16x16.gif')));
 }