public function action_category()
 {
     $url = $this->request->param('id');
     $data = array();
     $category = new Model_Category('tree');
     $material = new Model_Material();
     $category_id = $category->getCategoryIdByUrl($url);
     if (!$category_id) {
         throw new HTTP_Exception_404('Запрашиваемая категория не найдена');
         return;
     }
     $data['materials'] = $material->getMaterialsByCategory($category_id);
     //$data['category_name'] = $category_info['name'];
     $this->template->content = View::factory('materialsview', $data);
 }