...
During our bundle's generation, we have chosen to generate the bundle with default code snippets. Fortunately, almost everything we need is part of those default snippets. We just need to do some editing, in particular in two locations: src/EzSystems/CookbookBundle/Resources/config/routing.yml
and src/EzSystems/CookbookBundle/Controllers/DefaultController.php
. The first one will be used to configure our route (/cookbook/test
) as well as the controller action the route should execute, while the latter will contain the actual action's code.
...
Code Block | ||
---|---|---|
| ||
ezsystems_cookbook_hello:
pattern: /cookbook/hello/{name}
defaults: { _controller: EzSystemsCookbookBundle:Default:hello } |
...