예제 #1
0
 function index()
 {
     $temas = new Tema();
     $this->set('temas', $temas->find('list'));
 }
예제 #2
0
파일: Tema.php 프로젝트: fluzo/foro
 public function aprobar($id)
 {
     $contenido = Tema::find($id);
     $contenido->aprobado = true;
     $contenido->save();
 }