2017 © Pedro Peláez
 

symfony-bundle admin-bundle

symfony AdminBundle

image

bbit/admin-bundle

symfony AdminBundle

  • Tuesday, November 14, 2017
  • by whitewhidow
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,111 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Appkernel:, (*1)

new BBIT\AdminBundle\BBITAdminBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new BBIT\DataGridBundle\BBITDataGridBundle(),
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),

Create AdminClass:, (*2)

class ItemAdmin extends BaseAdmin
{
    protected function listQueryBuilder() {
        $qb = parent::listQueryBuilder();

        return $qb;
    }

    protected function mapListFields(DataGridService $grid) {
        $grid->addField('name', 'string', [
            'sortable' => false,
            'filterable' => false,
        ]);
    }

    protected function mapFormFields(FormBuilder $formBuilder) {
        $formBuilder->add('name');
    }
}

Create Service:, (*3)

item_admin:
    class: AppBundle\Admin\ItemAdmin
    arguments: ['AppBundle\Entity\Item']
    tags:
        - { name: bbit.admin, label: 'items', icon: 'glyphicon glyphicon-apple' }

Config:, (*4)

bbit_admin:
    route_prefix: admin       # optional
    disable_auth: false       # optional

Routing:, (*5)

bbit_admin:
    resource: "@BBITAdminBundle/Resources/config/routing.yml"
    prefix:   /

The Versions

14/11 2017

dev-master

9999999-dev

symfony AdminBundle

  Sources   Download

MIT

The Requires

 

The Development Requires