markstory / asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.
MIT License
370 stars 125 forks source link

Callback function not being called #369

Closed umer936 closed 1 year ago

umer936 commented 1 year ago

I'm attempting to use a callback to be able to use a variable for the theme.

My goal is to be able to set the themes[] from .env by reading it in a PHP file (for now I'm just doing Application::getTheme()).

However, copy/pasting the method described in the docs ( https://github.com/markstory/asset_compress/wiki/Configuration#callback-files )

gives me: syntax error, unexpected '(' in /web/merit/config/asset_compress.ini on line 61

Is this still doable? Or am I missing something else?

markstory commented 1 year ago

Have you tried quoting the value? It should be there in the docs as well.

Edit: Updated the docs :smile: