findOneById($id); if ( !is_object($category) ) { header('Location: categories.php'); } $products = $category->getProducts(); ?>