diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..c419263 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-cayman \ No newline at end of file diff --git a/controller.html.twig b/controller.html.twig index a653807..edefe5e 100644 --- a/controller.html.twig +++ b/controller.html.twig @@ -31,7 +31,10 @@ $request->isXmlHttpRequest(); {% raw %}
$this->redirect($this->generateUrl("homepage"));
-
{% endraw %} +// 2.6 and above +$this->redirectToRoute('homepage'); + +{% endraw %}

Rendering text from a controller:

diff --git a/forms.html.twig b/forms.html.twig index 445f478..8283446 100644 --- a/forms.html.twig +++ b/forms.html.twig @@ -284,10 +284,9 @@ return $this->render('AcmeTaskBundle:Task:new.html.twig', array(

Simple and fast

-{% raw %}
<form action="http://github.com/%7B%7B%20path('task_new') }}" method="post" {{ form_enctype(form) }}>
+{% raw %}
{{ form_start(form) }}
 {{ form_widget(form) }}
-<input type="submit" />
-</form>
+{{ form_end(form) }}
 
{% endraw %}

Rows

@@ -411,4 +410,4 @@ return $this->render('AcmeTaskBundle:Task:new.html.twig', array(

See more in: http://symfony.com/doc/current/cookbook/form/form_customization.html -

\ No newline at end of file +