This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

A tuto or snippet on how embeding filer forms in the main filter form of the Admin Gen !

Requests for new symfony features.

A tuto or snippet on how embeding filer forms in the main filter form of the Admin Gen !

by shopoto » Tue Jan 05, 2010 4:06 pm

HI everyone!


Is it possible to have a tuto on how doing this?

I've explained my problem in these posts:
http://forum.symfony-project.org/index.php/t/24598/
http://forum.symfony-project.org/index.php/t/24622/

Trying to embed sub filter form in the main filter form of a class based Admin generated module only leads to some facts:

- Embeded filter form are not bound when we trye to filter the list has the main filter form is.

- Even if I force the binding of sub filter form I came up to a sub filter form invalid, a _csrf_token [Required.] error on the sub filter forma appears.

Sound weird that sf ask me the token in the sub form cause I know that is actually present in the main filter form!

-Any way I try to use the patch :
http://trac.symfony-project.org/ticket/6531
In order that sfForm::renderHiddenFields() render the hidden field (the token) in embed forms but with no successs..


-So I try to force the inclusion of the token in the sub form I fall on a _csrf_token [CSRF attack detected.]...!!!

So for the heaven sake is it possible to embed filter form in the main filter form of and admin gen module?

If someone has resolve this pb, I ll be very glad to know how you didi this!!!

If not, I ask to the Sf team:
Explain us how to to do that please!!!

:P
shopoto
Junior Member
 
Posts: 22
Joined: Tue Jul 21, 2009 10:31 am

Re: A tuto or snippet on how embeding filer forms in the mai

by orion88 » Thu Aug 26, 2010 9:14 pm

Did you ever solve this problem? I'm trying to do the same thing.
orion88
Junior Member
 
Posts: 1
Joined: Thu Aug 26, 2010 8:52 pm

Re: A tuto or snippet on how embeding filer forms in the mai

by DamianX » Sat Sep 25, 2010 7:43 am

Same problem with embed filter form. Some clue, colutions?
DamianX
Junior Member
 
Posts: 19
Joined: Sat Feb 14, 2009 5:47 pm