framework/RedKiteCms/Rendering/Controller/Cms/BackendController.php
public function show(array $options)
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $this->options = $resolver->resolve($options);

        $this->configuration = $this->options['red_kite_cms_config'];
        $request = $this->options["request"];
        $request->getSession()->set('last_route', $request->get('_route'));
        $request->getSession()->set('last_uri', $request->getUri());

        $page = $this->renderPage();
        $params = $this->configureRendererOptions($page);

        $formFactory = $this->options['form_factory'];
        $seoForm = $formFactory->create(new SeoType());
        $params["seo_form"] = $seoForm->createView();
        $params["editor_toolbar"] = $this->options["toolbar_manager"]->render();
        $params["path_info"] = basename($request->getPathInfo());

        return $options["twig"]->render('RedKiteCms/Resources/views/Template/Cms/template.html.twig', $params);
    }
public function show(array $options)
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $this->options = $resolver->resolve($options);

        $this->configuration = $this->options['red_kite_cms_config'];
        $request = $this->options["request"];
        $request->getSession()->set('last_route', $request->get('_route'));
        $request->getSession()->set('last_uri', $request->getUri());

        $page = $this->renderPage();
        $params = $this->configureRendererOptions($page);

        $formFactory = $this->options['form_factory'];
        $seoForm = $formFactory->create(new SeoType());
        $params["seo_form"] = $seoForm->createView();
        $params["editor_toolbar"] = $this->options["toolbar_manager"]->render();
        $params["path_info"] = basename($request->getPathInfo());

        return $options["twig"]->render('RedKiteCms/Resources/views/Template/Cms/template.html.twig', $params);
    }
Implements the action to render the CMS backend
@param array $options

@return \Symfony\Component\HttpFoundation\Response