Symfony: Overload helpers?

I would like to overload the header include_http_metas()(from the class AssetHelper) to make it compatible with HTML5.

Any ideas?

Many thanks.

+3
source share
2 answers

Just copy the AssetHelper.php file (there is no AssetHelper class class at all) in the lib / helper directory of your application and make changes to the copy.

Source: http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer (Β§ Adding your own helpers)

+1
source

, , include_http_metas() sfContext:: getInstance() β†’ getResponse() β†’ getHttpMetas(), ( .yml config) getHttpMetas() .

+1

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


All Articles