rofil / simple-content
The simple Content Package
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
This package is not auto-updated.
Last update: 2025-07-05 23:35:11 UTC
README
This for website with simple content
##Installation
Add "rofil/simple-content": "dev-master"
into composer.json as follows
...
"requires": {
...
"rofil/simple-content": "dev-master"
...
}
...
and update by running composer update
##Register
Register the bundle in app/AppKernel.php as follow:
...
new Rofil\Simple\ContentBundle\RofilSimpleContentBundle(),
...
##Routing Update routing.yml|xml by addin following code:
...
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
##Security
Adding access control in security.yml as follows:
...
access_control:
...
- { path: ^/manage/information, roles: ROLE_MANAGER }
- { path: ^/manage/news, roles: ROLE_MANAGER }
...
...