jiabin / julius-boilerplate-bundle
Boilerplate (starter) bundle for Symfony2
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- sensio/framework-extra-bundle: dev-master
- symfony/framework-standard-edition: dev-master
- symfony/symfony: dev-master
This package is auto-updated.
Last update: 2024-10-24 00:21:31 UTC
README
Boilerplate (starter) bundle for Symfony2
Enabling the bundle
Add following line in your AppKernel.php
file to enable the bundle
// app/AppKernel.php
...
new Julius\BoilerplateBundle\JuliusBoilerplateBundle(),
Declaring your routes
To declare your custom routes you can use routing.yml
file situated in ./Resources/config
. Be sure to include this file in your main routing configuration.
Example routing configuration
Your main configuration:
# app/config/routing.yml
JuliusBoilerplateBundle:
resource: "@JuliusBoilerplateBundle/Resources/config/routing.yml"
Bundle routing configuration:
# Julius/BoilerplateBundle/Resources/config/routing.yml
JuliusBoilerplateBundle:
resource: "@JuliusBoilerplateBundle/Resources/config/routing.yml"
Asset management
If you need public access to your assets (images/stylesheets/javascripts etc.) place them under ./Resources/public
directory. The contents of this folder will be put inside symfony-base-path/web/bundles/juliusboilerplate
after executing php app/console assets:install
command.