public function page(string $id, Request $request, SalesChannelContext $context): Response
    {
        if (!$id) {
            throw new MissingRequestParameterException('Parameter id missing');
        }

        $page = $this->load($id, $request, $context);

        return $this->renderStorefront('@Storefront/page/content/detail.html.twig', ['cmsPage' => $page]);
    }
public function page(string $id, Request $request, SalesChannelContext $context): Response
    {
        if (!$id) {
            throw new MissingRequestParameterException('Parameter id missing');
        }

        $page = $this->load($id, $request, $context);

        return $this->renderStorefront('@Storefront/page/content/detail.html.twig', ['cmsPage' => $page]);
    }
public function page ( string $ id , Request $ request , SalesChannelContext $ context ) : Response { if ( ! $ id ) { throw new MissingRequestParameterException ( 'Parameter id missing' ) ; } $ page = $ this -> load ( $ id , $ request , $ context ) ; return $ this -> renderStorefront ( '@Storefront/page/content/detail.html.twig' , [ 'cmsPage' => $ page ] ) ; }
Route for stand alone cms pages

@Route("/widgets/cms/{id}", name="widgets.cms.page", methods={"GET", "POST"}, defaults={"id"=null, "XmlHttpRequest"=true})
Route for stand alone cms pages