/** * @Route("/", name="index") */ public function indexAction() { $screen = new Screen("Hello Word"); $screen->addChild(new Text("Hi!")); $inp = new Input("name", "What is your name?"); $screen->addChild($inp); $btn = new Button("Go"); $btn->setRemoteLink($this->generateUrl("hello", [], true)); $btn->addVariable($inp); $screen->addChild($btn); $remote = new Remote($screen); return $remote->getSymfonyResponse(); }