beberlei / zelten

A social network website based on tent.io protocol
http://www.zelten.cc
17 stars 5 forks source link

Q: How is path() resolved from inside a Twig template? #177

Open tjreo opened 11 years ago

tjreo commented 11 years ago

I'm going mad trying to figure this out since it is keeping me from learning a few key Twig/Silex concepts.

The code below lives in zelten/templates/layout.html on line 75:

<a href="{{ path('stream') }}">
  1. How does path() get resolved? I cannot find this method definition. (Is it in Zelten, Twig, Silex or PHP?)
  2. Where is path('stream') initialized? (It has got to be inside Zelten somewhere.)