Esempio n. 1
0
 public function get_edit($id)
 {
     $edit_surat = Suratkeluar::edit_surat($id);
     if ($edit_surat) {
         return View::make('suratkeluar.edit')->with('title', 'Buku Agenda :: Edit Surat Keluar')->with('suratkeluar', $edit_surat);
     } else {
         // return error 404 apabila mengakses ID surat yg tidak ada di database
         return View::make('error.404');
     }
 }