yottacms/yotta-admin-bundle

Yotta 管理器包

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

This package is auto-updated.

Last update: 2024-09-15 07:35:48 UTC


README

管理员面板骨架

安装

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

默认配置

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