yottacms/yotta-admin-bundle

v0.1.17 2018-09-05 20:31 UTC

This package is auto-updated.

Last update: 2024-04-15 06:35:58 UTC


README

Скелет панели администратора

Installation

composer require yottacms/yotta-admin-bundle
// app/AppKernel.php
use YottaCms\Framework\Component\HttpKernel\Kernel;
// ...

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            \YottaCms\Bundle\YottaAdminBundle\YottaAdminBundle::class
        );
        // ...
        return $this->preloadBundles($bundles);
    }
    // ...
}
# app/config/routing.yml
# ...
yotta_admin:
    resource: '@YottaAdminBundle/Resources/config/routing.yml'
# and one more thing...
php bin/console assets:install

Default configuration

# app/config/config.yml
# ...
yotta_admin:
    enabled: true
    templating:
        use_react_library: true # automatic insert js libraries for React in output html