function seltipoensayo($formato_id) { $tipensayo = new Tipoensayo(); $this->arr = $tipensayo->find(); $this->formato_id = $formato_id; }