undefined variable

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?


$this->render('index',array('teclado'=>$teclado));

i dont know how i not saw that .Thank you