src/Slashworks/AppBundle/Controller/RemoteAppController.php
public function newAction()
        {

            $oRemoteApp = new RemoteApp();
            $oRemoteApp->setApiUrl("swControl/");
            $oRemoteApp->setActivated(true);
            $oRemoteApp->setIncludelog(true);
            $oRemoteApp->setNotificationRecipient($this->getUser()->getEmail());
            $oRemoteApp->setNotificationSender($this->getUser()->getEmail());
            $oRemoteApp->setNotificationChange(true);
            $oRemoteApp->setNotificationError(true);
            $form = $this->createCreateForm($oRemoteApp);

            return $this->render('SlashworksAppBundle:RemoteApp:new.html.twig', array(
                'entity' => $oRemoteApp,
                'form'   => $form->createView(),
            ));
        }
public function newAction()
        {

            $oRemoteApp = new RemoteApp();
            $oRemoteApp->setApiUrl("swControl/");
            $oRemoteApp->setActivated(true);
            $oRemoteApp->setIncludelog(true);
            $oRemoteApp->setNotificationRecipient($this->getUser()->getEmail());
            $oRemoteApp->setNotificationSender($this->getUser()->getEmail());
            $oRemoteApp->setNotificationChange(true);
            $oRemoteApp->setNotificationError(true);
            $form = $this->createCreateForm($oRemoteApp);

            return $this->render('SlashworksAppBundle:RemoteApp:new.html.twig', array(
                'entity' => $oRemoteApp,
                'form'   => $form->createView(),
            ));
        }
public function newAction ( ) { $ oRemoteApp = new RemoteApp ( ) ; $ oRemoteApp -> setApiUrl ( "swControl/" ) ; $ oRemoteApp -> setActivated ( true ) ; $ oRemoteApp -> setIncludelog ( true ) ; $ oRemoteApp -> setNotificationRecipient ( $ this -> getUser ( ) -> getEmail ( ) ) ; $ oRemoteApp -> setNotificationSender ( $ this -> getUser ( ) -> getEmail ( ) ) ; $ oRemoteApp -> setNotificationChange ( true ) ; $ oRemoteApp -> setNotificationError ( true ) ; $ form = $ this -> createCreateForm ( $ oRemoteApp ) ; return $ this -> render ( 'SlashworksAppBundle:RemoteApp:new.html.twig' , array ( 'entity' => $ oRemoteApp , 'form' => $ form -> createView ( ) , ) ) ; }
Displays a form to create a new RemoteApp entity.

@return \Symfony\Component\HttpFoundation\Response
Displays a form to create a new RemoteApp entity .