This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » symfony filters
symfony filters [message #102480] Wed, 14 July 2010 18:04
ying  is currently offline ying
Messages: 41
Registered: March 2010
Guys, I have questions about filters.

1)Is there a way to control the execution of a filter so that it only executes EITHER before or after an action? Looking through sfFilter API it does not look like it. It seems horribly inefficient to do it that way?

2) Where do you save filter classes like myFilter.class.php? say if i wanted to overload a symfony filter calss like sfcachefilter, where should i save it so that it looks for mine first before going for the default?

3) The main goal is to disable caching for all XMLHttpRequests. I know I can inject headers in my action but since i have ajax calls littered all over my modules, this is error prone and probably not hte right way to do it. Am i on the right track here or is there an easier way?


Previous Topic:Correct way to implement JQuery ajax?
Next Topic:symfony progress bar
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software