Exemplo n.º 1
0
 function index()
 {
     $temas = new Tema();
     $this->set('temas', $temas->find('list'));
 }
Exemplo n.º 2
0
Arquivo: Tema.php Projeto: fluzo/foro
 public function aprobar($id)
 {
     $contenido = Tema::find($id);
     $contenido->aprobado = true;
     $contenido->save();
 }