src/Zicht/Bundle/PageBundle/Controller/PageController.php
public function viewAction(Request $request, $id)
    {
        /** @var $pageManager \Zicht\Bundle\PageBundle\Manager\PageManager */
        $pageManager = $this->getPageManager();
        $page = $pageManager->findForView($id);

        if (null !== ($validator = $this->getViewActionValidator())) {
            $validator->validate($page);
        }

        if ($page instanceof ControllerPageInterface) {
            return $this->forward(
                $page->getController(),
                (array)$page->getControllerParameters()
                + array(
                    'parameters' => $request->query->all(),
                    '_locale'       => $request->attributes->get('_locale'),
                    '_internal_url' => $request->attributes->get('_internal_url'),
                ),
                $request->query->all()
            );
        }

        return $this->renderPage($page);
    }
public function viewAction(Request $request, $id)
    {
        /** @var $pageManager \Zicht\Bundle\PageBundle\Manager\PageManager */
        $pageManager = $this->getPageManager();
        $page = $pageManager->findForView($id);

        if (null !== ($validator = $this->getViewActionValidator())) {
            $validator->validate($page);
        }

        if ($page instanceof ControllerPageInterface) {
            return $this->forward(
                $page->getController(),
                (array)$page->getControllerParameters()
                + array(
                    'parameters' => $request->query->all(),
                    '_locale'       => $request->attributes->get('_locale'),
                    '_internal_url' => $request->attributes->get('_internal_url'),
                ),
                $request->query->all()
            );
        }

        return $this->renderPage($page);
    }
View a page.

@param Request $request
@param string $id
@return Response

@Route("page/{id}")