I'm trying to start a new project with Symfony2. I started with a simple Hello world. Controller:
class DefaultController extends Controller
{
public function indexAction()
{
$name = 'world';
return $this->render('MyowntestBundle:Default:index.html.twig', array('name' => $name));
}
}
View:
{% extends "::base.html.twig" %}
{% block body %}
Hello {{ name }}!
{% endblock %}
When i open site through app.php
everything is ok, but opening app_dev.php
results in a blank, white page. Nothing in apache main error log, nothing in vhost error log and app/logs/dev.log
is empty too.
Whats wrong?