In this video we will be starting off from my login project to display a list of countries in the welcome page which is retrieved from a mySQL db. In this this video we will set up the twig and pagination
Doctrine And Twig Tutorial For Symfony2 and Twitter Bootstrap Video 2 (Twig Basics)
Posted by
Manoj S
at
11:35 AM
Tuesday, July 23, 2013
In this video we will be starting off from my login project to display a list of countries in the welcome page which is retrieved from a mySQL db. In this this video we will set up the twig and pagination
3 comments :
-
Make sure the variable countries is passed as a variable while rendering the twig from the controller..the variable countires should have the list of countries in them...
-
add this code in welcome.html.twig and will work fine
{% if countries is defined %}
{% include "LoginLoginBundle:Default:table.html.twig"%}
{% endif %}
Subscribe to:
Post Comments
(
Atom
)
After i login , a problem appears "variable countries doesn't exist"
{%for country in countries %}