In my Symfony2 application, I want to have a widget displayed on various pages. This can't just be defined by its template, it need to call the DB and go through the controller.
In Symfony1, I would create a component and include it. How can I do the same in Symfony2?