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