Symfony - Application Layout Catalog

I would like administrators to be able to load new layouts for an external application in my Symfony application. Is there a way to change the layout directory for a specific application or allow download to this directory?

Any advice is appreciated.

Thanks.

+4
source share
1 answer

There seems to be a method for setting the layout of the catalog view - on the fly:

http://www.symfony-project.org/api/1_4/sfView#method_setdecoratordirectory

It takes a path for your guys to upload to the uploads / directory, and your application will grab them from there.

The only implementation example I could find is:

http://oldforum.symfony-project.org/index.php/m/77051/

Hope that at least you point in the right direction.

+2
source

Source: https://habr.com/ru/post/1340596/


All Articles