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);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
 /**
  * Show the login form
  */
 public function create()
 {
     return View::Make('sentrystart::sessions.login');
 }
Ejemplo n.º 4
0
 /**
  * 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);
 }