本文整理汇总了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'));
}