I’m wondering what would be the “best” approach for this:
I need a list of countries for a dropdownlist. For this I’ve created a model class derived from CFormModel which holds a public $countries array containing all countries.
This model is passed to the form where it can be used to populate a dropdownlist by simply using $countryMode->counties.
No need to use any CModel class (CFormModel) at all for this, as you’ll never validate these countries. A simple custom class with static methods will do also.