This is very unuseful to not having access to sfContext in the Symfony 1.4 forms for many reasons, for example to check whether user logged in or not or check user credentials and show/hide form widgets/validators. Continue reading “How to Get sfContext in Symfony 1.4 form – Inject Your Dependency!”
World Flags Sprite for Currencies
For my project CXRATE – Currency Exchange Rates in Ukraine I have made small fork of World Flags Sprite CSS and added there support for world currencies (USD, CHF, CAD, GBP, etc). Continue reading “World Flags Sprite for Currencies”
Symfony 1.4 skip sf_culture in URL for main language with overridden sfPatternRouting class
If you have i18n website and want to have language in the URL _BUT_ want to skip main language to be in the URL you need some custom solution.