public function indexAction()
 {
     $fullPath = $this->getFullPath();
     $categoriesMapper = new Pipeline_Model_Mapper_PipelineCategories();
     $category = $categoriesMapper->findByFulPath($fullPath, new Pipeline_Model_PipelineCategories());
     if (is_null($category)) {
         throw new Zend_Controller_Action_Exception("Страница не найдена", 404);
     }
     $this->view->category = $category;
     $this->view->title = $category->getTitle();
     $current_category_id = $category->getId();
     $pipelineMapper = new Pipeline_Model_Mapper_Pipeline();
     $select = $pipelineMapper->getDbTable()->select()->where('deleted != ?', 1)->where('active != ?', 0)->where('category_id = ?', $current_category_id)->order('sorting ASC');
     $pipelineItems = $pipelineMapper->fetchAll($select);
     if (!empty($pipelineItems)) {
         $this->view->listItems = $pipelineItems;
     } else {
         $this->forward('view', 'categories');
         return;
     }
 }