In controller:
$teclado=new Teclado;
$this->render('index',array('teclado',$teclado));
view:
<?php echo CHtml::activeDropDownList($teclado, 'idteclado', CHtml::listData(Teclado::model()->findAll(), 'idteclado', 'TecladoName')); ?>
then i get Undefined variable: teclado why?