public function haberDuzenleAc($haber_id) { $data = array(); $q = "SELECT * FROM haberler WHERE id = ?"; $al = DB::select($q, array($haber_id)); $data["haberler"] = $al[0]; return View::Make("admin/haberDuzenle")->with("data", $data); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $user = $this->user->byId($id); if ($user == null || !is_numeric($id)) { // @codeCoverageIgnoreStart return \App::abort(404); // @codeCoverageIgnoreEnd } $currentGroups = $user->getGroups()->toArray(); $userGroups = array(); foreach ($currentGroups as $group) { array_push($userGroups, $group['name']); } $allGroups = $this->group->all(); return View::Make('sentrystart::users.edit')->with('user', $user)->with('userGroups', $userGroups)->with('allGroups', $allGroups); }
/** * Show the login form */ public function create() { return View::Make('sentrystart::sessions.login'); }
/** * Show the form for editing the specified resource. * * @return Response */ public function edit($id) { $group = $this->group->byId($id); return View::Make('sentrystart::groups.edit')->with('group', $group); }