Jim Lindley Notes

Filter Chain Halting

October 21st, 2007

Controller filters (in 1.2.x and previous) stop when a filter returns false. Checked into edge today, and sure to show up in the next 2.0 RC, is a break to that behaviour.

In 2.0 filters can only halt the chain with a render or redirect (similar to the actual controller methods themselves). It was too easy for an errant filter halt to lead to a white screen of death. Be sure to comb through your code and consider how your execution flow will be affected.

Changeset #7984

Sorry, comments are closed for this article.