Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony: Overload helpers?

I'd like to overload the include_http_metas() helper (from the AssetHelper class) in order to make it HTML5 compliant.

Any ideas?

Much thanks.

like image 599
nimser Avatar asked Feb 16 '26 09:02

nimser


1 Answers

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

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

like image 170
greg0ire Avatar answered Feb 18 '26 22:02

greg0ire