Created
March 21, 2011 20:07
-
-
Save dsyph3r/880106 to your computer and use it in GitHub Desktop.
Blog: Symfony 2, Doctrine 2 and Twig: First impressions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block sidebar %} | |
<h3>Navigation</h3> | |
{{ parent() }} | |
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
{% for foo in bar %} | |
<li>{{ foo.name }}</li> | |
{% else %} | |
<li>No foo found</li> | |
{% endfor %} | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clients: | |
resource: "@ClientAdminBundle/Resources/config/routing.yml" | |
prefix: /clients |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block sidebar %} | |
<ul> | |
<li><a href="/">Home</a></li> | |
<li><a href="/blog">Blog</a></li> | |
</ul> | |
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./app/console doctrine:schema:update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment