Google News
logo
Yii framework - Interview Questions
What is Filters in YII Framework?
Filters are objects that run before and/or after controller actions. For example, an access control filter may run before actions to ensure that they are allowed to be accessed by particular end users; a content compression filter may run after actions to compress the response content before sending them out to end users.
 
A filter may consist of a pre-filter (filtering logic applied before actions) and/or a post-filter (logic applied after actions).
Advertisement