```
/**
 * @Route("/installation", name="installation")
 */
public function defaultAction()
{
    $this->checkPhpVersion();
    return $this->redirect($this->generateUrl('setdatabase'));
}

private function checkPhpVersion()
{
    if(phpversion() <= '5.5.0') 
    {
        $message = 'aaa';   
        return $this->render('myFooBundle:Bar:error.html.twig', ['message' => $message]);       
    }
}

```

Well, I'd like the if instruction in the `checkPhpVersion()` method to display the error page and stop later executions. 

The instruction is being called, but it seems that the view is not rendered properly, because I get redirected to the setdatabase controller (the end of `defaultAction()`), and I shouldn't.

The content of error.html.twig is not being displayed. Instead, as mentioned above, the setdatabase controller is called and its method's view appears.

What's wrong?

---

```
private function checkPhpVersion()
{
    if(phpversion() <= '5.5.0') 
    {
        echo 1;
        exit();
        echo 2;
        $message = 'aaa';  
        return $this->render('myFooBundle:Bar:error.html.twig', ['message' => $message]);     
    }
}

```

This still changes nothing. However, deleting redirect statement and placing raw `return array()` there, deleting `exit()`, displays '1' and '2' integers, and some error according to the `return array()` mentioned.