public function repExemploCSV() { $usuario = new models\Usuario(); $this->data->result = $usuario->listExemploCSV()->asQuery()->getResult(); if ($this->data->result) { $this->renderWindow(); } else { $this->renderPrompt('error', 'Nenhum registro encontrado.'); } }