function index() { $temas = new Tema(); $this->set('temas', $temas->find('list')); }
public function aprobar($id) { $contenido = Tema::find($id); $contenido->aprobado = true; $contenido->save(); }