src/Slashworks/BackendBundle/Controller/InstallController.php
public function installAction()
        {

            // create install form
            $form = $this->createForm(new InstallType(), null, array('action' => $this->generateUrl('install_process')));

            // redirect to login if config already filled
            if ($this->container->getParameter('database_password') !== null) {
                return $this->redirect($this->generateUrl('login'));
            } else {
                return $this->render('SlashworksBackendBundle:Install:install.html.twig', array("error" => false, "errorMessage" => false, "form" => $form->createView()));
            }
        }
public function installAction()
        {

            // create install form
            $form = $this->createForm(new InstallType(), null, array('action' => $this->generateUrl('install_process')));

            // redirect to login if config already filled
            if ($this->container->getParameter('database_password') !== null) {
                return $this->redirect($this->generateUrl('login'));
            } else {
                return $this->render('SlashworksBackendBundle:Install:install.html.twig', array("error" => false, "errorMessage" => false, "form" => $form->createView()));
            }
        }
public function installAction ( ) { // create install form $ form = $ this -> createForm ( new InstallType ( ) , null , array ( 'action' => $ this -> generateUrl ( 'install_process' ) ) ) ; // redirect to login if config already filled if ( $ this -> container -> getParameter ( 'database_password' ) !== null ) { return $ this -> redirect ( $ this -> generateUrl ( 'login' ) ) ; } else { return $ this -> render ( 'SlashworksBackendBundle:Install:install.html.twig' , array ( "error" => false , "errorMessage" => false , "form" => $ form -> createView ( ) ) ) ; } }
Display install form

@return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
Display install form