Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Unknown "fileIcon" function #11

Closed
Quovandius opened this issue Jul 9, 2018 · 3 comments
Closed

Unknown "fileIcon" function #11

Quovandius opened this issue Jul 9, 2018 · 3 comments

Comments

@Quovandius
Copy link

Quovandius commented Jul 9, 2018

Hi,

Another issue sorry =)

The function fileIcon is called but unknown. I think i have missed a declaration ?
Thanx for your help.

@Arkounay
Copy link
Collaborator

Arkounay commented Jul 9, 2018

The bundle uses artgris/FileManagerBundle and needs it installed as prerequisite.
It'll work if you add Artgris\Bundle\FileManagerBundle\ArtgrisFileManagerBundle::class => ['all' => true] in bundles.php (for Symfony 4, for Symfony 3 it should be something like new Artgris\Bundle\FileManagerBundle\ArtgrisFileManagerBundle() in AppKernel.php)

Then simply you can add this config (in config.yml for symfony3, or in a new file artgris_file_manager.yaml in symfony 4)

artgris_file_manager:
    web_dir: public
    conf:
        default:
            dir: "../public/uploads/"
            type: image 

@Quovandius
Copy link
Author

Yes that's works

Can i notice an improvments of your Readme with your answer ?
I want to add this additionnals informations.

@Arkounay
Copy link
Collaborator

Arkounay commented Jul 9, 2018

Nice. Sure, feel free to make a pull request :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants