Is it possible to retrieve User information inside a filter in symfony 1.4?
I know that in an action I can call
$this->getUser()
and in a template I use
$sf_user
but how can I do in a filter?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Good practice:
in action:
and in your form filter class:
Bad practice:
in your form filter class: