Le 21/06/2011 18:11, Tac Tacelosky a écrit :
I was looking at the code in DemoController (sf2, latest beta) and saw two annotations that I don't understand:

class DemoController extends Controller
{
    /**
     * @Route("/", name="_demo")
     * @Template()
     */

What are @Route and @Template? How are they used? Is it something generated, or used? In particular, I'm wondering if there's a way to define the route in the controller and having the routing.yml file generated from the annotations there.

Thx,

Tac

These annotation are not about generating a yml file but about using annotations instead of YAML to configure the routing. See the doc of SensioFrameworkExtraBundle for details.

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to