I develop university site with Symfony2. Besides I'm almost newbie in Symfony.
Index page consists of several blocks: news, events, photos, etc. All objects are fetched from webservices, so no DB is used directly.
I wonder which is better:
- Fetch all news,photos,.. objects in DefaultController:indexAction and pass them to index.html.twig as arguments
- Call render(controller(News:block)) in index.html.twig. And NewsController in turn fetches objects and renders news_block.html.twig.
- Some other way?.. I actually use the second way but I think it is not good.
Please give me advice.