evercodelab / evercode-page-bundle
Simple Symfony2 Bundle to work with pages
Installs: 946
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 16
Forks: 0
Open Issues: 3
Type:symfony-bundle
Suggests
- doctrine/doctrine-fixtures-bundle: to enable fixtures functionality
This package is not auto-updated.
Last update: 2018-06-29 09:40:58 UTC
README
Simple Symfony2 Bundle to work with static pages.
Installation
This manual assumes that you're already using composer for your symfony installation and package management.
If not, you really should. Nevertheless it won't be a problem for you to install bundle using deps
file or git submodule
.
Step 1. Add bundle to your composer.json
file
{
"require": {
"evercodelab/evercode-page-bundle" : "dev-master"
}
}
Step 2. Register the bundle in your app/AppKernel.php
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Evercode\Bundle\PageBundle\EvercodePageBundle(),
);
// ...
}
Step 3. Register bundle's routes in app/config.routing.yml
EvercodePageBundle:
resource: "@EvercodePageBundle/Controller/"
type: annotation
prefix: /
Step 4. Update your database schema to map your new Page entity.
$ php app/console doctrine:schema:update --force