public static function productSubcategory($url_parts)
 {
     require_once 'Product.model.php';
     require_once 'User.model.php';
     require_once 'Upload.model.php';
     if (count($url_parts) > 0) {
         $subcategory_id = $url_parts[0];
         $result = ProductModel::getProductsSubcategory($subcategory_id);
         if ($result) {
             $data['template'] = 'index.html';
             $data['states'] = UserModel::getStates();
             $data['categories'] = UploadModel::getCategories();
             $data['products'] = $result;
             if (count($result) > 0) {
                 $data['title'] = $result[0]['subcategory_name'];
                 $data['rubrik'] = 'Underkategori:';
             }
         }
     }
     return $data;
 }