title: Filtering user input in Yii
body: <p>I read Yii tutorial about data validation, but have the question: how can I to automatically <strong>filter</strong> user input (for example, I know, that identifier must be trimmed, or identifiers must be integers). </p>
  
  <p>Are there any best practices?</p>