Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
#1 Backend Meetup - Symfony 2 - wstęp
1. Symfony 2 – why ?
- Framework separated from our code
- Everything is a bundle
- Composer to rule them all
- Lots of useful bundles
- Documentation
- Flexibility
2. What is a bundle ?
● A bundle is simply a structured set of files within a
directory that implement a single feature.
● Each directory contains everything related to that
feature, including PHP files, templates,
stylesheets, JavaScripts, tests and anything else.
● There is always 'but'. Common parts place out of
bundle.
● App specific bundles are interdependent
11. Symfony 2 – The Routing II
● Routes list
php app/console router:debug
● Receive params in controller as list
indexAction($category, $page) – order doesnt matter
● Receive params in controller as Request object
indexAction(Request $request)
$request->query->get('page')
$request->request->get('page')