Simple Content
This for website with simple content, (*1)
Installation
Add "rofil/simple-content": "dev-master"
into composer.json as follows, (*2)
...
"requires": {
...
"rofil/simple-content": "dev-master"
...
}
...
and update by running composer update
, (*3)
Register
Register the bundle in app/AppKernel.php as follow:, (*4)
...
new Rofil\Simple\ContentBundle\RofilSimpleContentBundle(),
...
Routing
Update routing.yml|xml by addin following code:, (*5)
...
rofil_simple_content:
resource: "@RofilSimpleContentBundle/Controller/"
type: annotation
prefix: /
...
Update Database schema
Update database schema by running symfony command php app/console doctrine:schema:update --force
, (*6)
Security
Adding access control in security.yml as follows:, (*7)
...
access_control:
...
- { path: ^/manage/information, roles: ROLE_MANAGER }
- { path: ^/manage/news, roles: ROLE_MANAGER }
...
...