processJsVars() публичный Метод

set base js vars for use in the standard scripts for the controller.
public processJsVars ( )
Пример #1
0
 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();
 }