avanzu / AdminThemeBundle

Admin Theme based on the AdminLTE Template for easy integration into symfony
MIT License
281 stars 149 forks source link

No assets were provided by any bundle #228

Closed Manalro closed 6 years ago

Manalro commented 6 years ago

I have encountred an issue while trying to add the AdminLTE bundle to symfony. I am using the third version of symfony. I don't understand why it says that the assetswern't provided. Is it normal ?

Here's the error :

PS C:\wamp64\www\webis> php bin/console assets:install --symlink

Trying to install assets as absolute symbolic links.

[OK] No assets were provided by any bundle.

PS C:\wamp64\www\webis> php bin/console avanzu:admin:fetch-vendor

There are no commands defined in the "avanzu:admin" namespace.

shakaran commented 6 years ago

@Manalro if you are using master (aka future 2.x version instead 1.3.x version) you need:

php bin/console avanzu:admin:initialize

Did you load the AppKernel too? with:

Enable the bundle in your kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Avanzu\AdminThemeBundle\AvanzuAdminThemeBundle(),
    );
}
Manalro commented 6 years ago

This was a mistake in my code. This command works now