you can access to a user object via sfContext::getInstance()->getUser
() if you user standard user object and credentials system...


On 15 led, 00:41, Darren884 <darren...@gmail.com> wrote:
> Yes but how do I call the sfFormFilter object? I had tried $this-
>
> >configuration->getFilterForm but it runs the class again.
>
> On Jan 14, 2:56 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
>
>
>
> > sfFormFilter does have setOptions as it's only a subclass of BaseForm.
>
> > Daniel
>
> > On Jan 14, 2010, at 11:08 PM, Darren884 wrote:
>
> > > Actually that did not work. This is a flaw in Symfony itself, there is
> > > no way to pass values to the configre() method in the filters class.
> > > This needs to be fixed.
>
> > > On Jan 14, 12:11 pm, Darren884 <darren...@gmail.com> wrote:
> > >> Hi guys, I had to actually add an argument to the original
> > >> ConfigurationModelGenerator file and mimick the getForm() function to
> > >> pass options. I have no idea why this wasn't implemented in the first
> > >> place but who knows.
>
> > >> On Jan 13, 3:04 pm, Darren884 <darren...@gmail.com> wrote:
>
> > >>> In my form I use the setOptions to pass my user object so I can check
> > >>> the credentials in the form class if I want to display or hide fields,
> > >>> however in the FilterForm class there is no setOptions and class
> > >>> variables do not seem to be shared among functions. How am I to get
> > >>> the user object into my FormFilter class from the action in order to
> > >>> check credentials against it and hide or display fields? Is there a
> > >>> different method in Symfony other than the __construct to get
> > >>> variables?
>
> > >>> Thanks,
> > >>> Darren
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "symfony users" group.
> > > To post to this group, send email to symfony-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > symfony-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/symfony-users?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to