Symfony get Asset Name in Assetic output

Using Assetic to manage web assets in Symfony applications is no longer recommended. Instead, use Webpack Encore. https://symfony.com/doc/current/frontend/assetic/index.html#dumping-asset-files Page-Specific JavaScript or CSS (Multiple Entries) is described here: https://symfony.com/doc/current/frontend/encore/simple-example.html#multiple-javascript-entries // webpack.config.js Encore // … general CSS file here… .addStyleEntry(‘some_page’, ‘./assets/css/assetName.css’) ; Using addStyleEntry() is supported, but not recommended. A better option is to follow the pattern … Read more

Path of assets in CSS files in Symfony 2

I have came across the very-very-same problem. In short: Willing to have original CSS in an “internal” dir (Resources/assets/css/a.css) Willing to have the images in the “public” dir (Resources/public/images/devil.png) Willing that twig takes that CSS, recompiles it into web/css/a.css and make it point the image in /web/bundles/mynicebundle/images/devil.png I have made a test with ALL possible … Read more

cascade={“remove”} VS orphanRemoval=true VS ondelete=”CASCADE

onDelete=”CASCADE” is managed by the database itself. cascade={“remove”} is managed by doctrine. onDelete=”CASCADE” is faster because the operations are performed on database level instead by doctrine. The removing is performed by the database server and not Doctrine. With cascade={“remove”} doctrine has to manage the entity itself and will perform extra checks to see if it … Read more

Problems with lib-icu dependency when installing Symfony 2.3.x via Composer

update your php-intl extension, that’s where the icu error comes from! sudo aptitude install php5-intl // i.e. ubuntu brew install icu4c // osx check the extension is enabled and properly configured in php.ini aswell. ( hint: php-cli sometimes uses a different php.ini ) php.ini extension=intl.so ; *nix extension=php_intl.dll ; windows [intl] intl.default_locale = en_utf8 intl.error_level … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)