public function processJsVars() { $lens_types = array(); foreach (OphInBiometry_LensType_Lens::model()->findAll() as $lens) { $lens_types[$lens->name] = array('model' => $lens->name, 'description' => $lens->description, 'acon' => (double) $lens->acon); } $this->jsVars['OphInBioemtry_lens_types'] = $lens_types; parent::processJsVars(); }