symfony1 - Symfony form get user id -


To filter the options available in a section of my web application, I would like to get the user object on the form. I got some information about possible ways of doing this (using sfContext for example), but some users discourage this approach.

What is a possible way of achieving my purpose?

The best way to add some arguments to the baseform so that you use the self :: getValidUser () can do; Without ever using sfContext, which is not really recommended as usual.

Check out this awesome blog post for more information:


Comments