lorocod / gema-admin-bundle
Template y Admin para aplicacion rapida en proyectos de Symfony2.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:symfony-bundle
Requires
- php: >=5.3.3
- kriswallsmith/buzz: ~0.7
- symfony/framework-bundle: ~2.1
- symfony/options-resolver: ~2.1
- symfony/security-bundle: ~2.1
Requires (Dev)
- doctrine/orm: ~2.2
- symfony/twig-bundle: ~2.1
- symfony/validator: ~2.1
Suggests
- doctrine/doctrine-bundle: to use Doctrine user provider
- symfony/twig-bundle: to use the Twig
This package is not auto-updated.
Last update: 2024-04-13 13:56:21 UTC
README
1)Agregar al routing:
gema_admin: resource: "@GemaAdminBundle/Resources/config/routing.yml"
2)Agregar al Appkernel:
new Gema\AdminBundle\GemaAdminBundle(),
3)Agregar al securiry.yml
providers:
...
admin:
memory:
users:
user: { password: user, roles: [ 'ROLE_USER' ] }
admin: { password: admin, roles: [ 'ROLE_ADMIN' ] }
.
.
.
firewalls:
....
sin_seguridad:
pattern: ^/ejemplo/
security: false
Adminlogin:
pattern: ^/admin/(login|registro)$
security: false
Admin:
pattern: ^/admin/
provider: admin
form_login:
check_path: admin_login_check
login_path: admin_login
always_use_default_target_path: true
default_target_path: /admin/
logout:
path: admin_logout
target: /
4)Agregar los recursos css y js, usando assets
php app/console assets:install web --symlink