Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.
There Is Now A cpasswordhelper Class In system.utils at GitHub
that provides an API to simplify the use of crypt() for password storage.
While this wiki article remains valid, it will in due course be rewritten
to refer to the new class as well as explain how it works.