本文整理匯總了PHP中Illuminate\Support\Facades\View::Make方法的典型用法代碼示例。如果您正苦於以下問題:PHP View::Make方法的具體用法?PHP View::Make怎麽用?PHP View::Make使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Support\Facades\View
的用法示例。
在下文中一共展示了View::Make方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: haberDuzenleAc
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);
}
示例2: edit
/**
* 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);
}
示例3: create
/**
* Show the login form
*/
public function create()
{
return View::Make('sentrystart::sessions.login');
}
示例4: edit
/**
* 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);
}