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!”