コード例 #1
0
 public function edit()
 {
     Larasset::start('footer')->js('bootstrap-datepicker');
     Larasset::start('header')->css('bootstrap-datepicker');
     $all = Input::all();
     $id = $all['id'];
     //Lets fetch the updated data and return it through ajax
     $data['row'] = Expenditure::where('id', $id)->get()->toArray()[0];
     return View::make('admin.expenditures.expen_edit', $data);
 }