SmirikPropelAdminBundle is a missing admin generator for Symfony2. It allows to create config-based flexible administrative tool for any propel data. It works "out of the box". You only need to install it & run the console command.
- Symfony 2.1+
- PHP 5.3+
- Bootstrap is not required but highly recommended
All text data used in the bundle are translatable. Use translation files to provide custom translations.
Add SmirikPropelAdminBundle in your composer.json
:
{
"require": {
"smirik/propel-admin-bundle": "dev-master"
}
}
or via CLI:
$ php composer.phar require smirik/propel-admin-bundle
Update vendors:
$ php composer.phar update smirik/propel-admin-bundle
Enable this bundle in the kernel:
<?php
/** app/AppKernel.php */
public function registerBundles()
{
$bundles = array(
// ...
new Smirik\PropelAdminBundle\SmirikPropelAdminBundle(),
);
}
Add SmirikPropelAdminBundle
to assetics in config.yml
and activate form theming from SmirikBootstrapBundle:
...
assetic:
...
bundles: [ ..., "SmirikBootstrapBundle", "SmirikPropelAdminBundle" ]
...
twig:
...
strict_variables: %kernel.debug%
form:
resources:
- 'SmirikBootstrapBundle:Form:fields.html.twig'
Clear cache & run console command to generate your first admin page:
$ php app/console propeladmin:generate
It is highly recommended to install smirik/bootstrap-bundle
or add bootstrap.css
and bootstrap.js
to the specified layout because a lot of actions depends on this lib.
Other demo screenshots: