本文整理匯總了PHP中BaseController::show方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseController::show方法的具體用法?PHP BaseController::show怎麽用?PHP BaseController::show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BaseController
的用法示例。
在下文中一共展示了BaseController::show方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
parent::show();
$menus = Page::where("slug", "!=", "")->orderBy("menu_sort_order")->get();
$banner = $this->banner;
return $this->respond($menus, 'menus.index', compact('menus', 'banner'));
}
示例2: edit
/**
* Show the form for editing the specified resource.
* GET /banners/{id}/edit
*
* @param int $id
* @return Response
*/
public function edit($id = NULL)
{
parent::show();
$banner = Banner::find($id);
$path = $this->banner_path;
return View::make('banners.edit', compact('banner', 'path'));
}
示例3: edit
/**
* Show the form for editing the specified resource.
* GET /settings/{id}/edit
*
* @param int $id
* @return Response
*/
public function edit($id = NULL)
{
parent::show();
$banner = $this->banner;
$path = "/img/settings";
$setting = Setting::find($id);
return View::make('settings.edit', compact('setting', 'path', 'banner'));
}
示例4: dash
public function dash()
{
parent::show();
return View::make('admins.dash');
}
示例5: edit
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id = NULL)
{
parent::show();
$page = Page::findOrFail($id);
return View::make('pages.edit', compact('page'));
}
示例6: edit
/**
* Show the form for editing the specified portfolio.
*
* @param int $id
* @return Response
*/
public function edit($id = NULL)
{
parent::show();
$portfolio = Portfolio::find($id);
return View::make('portfolios.edit', compact('portfolio'));
}
示例7: create
public function create()
{
parent::show();
$user = new User();
return View::make('users.create', compact('user'))->withMessage("Create User");
}
示例8: edit
/**
* Show the form for editing the specified project.
*
* @param int $id
* @return Response
*/
public function edit($id = NULL)
{
parent::show();
$project = Project::find($id);
$portfolios = Portfolio::allPortfoliosSelectOptions();
$path = $this->project_uri;
return View::make('projects.edit', compact('project', 'portfolios', 'path'));
}