本文整理汇总了PHP中Illuminate\Routing\ResponseFactory::view方法的典型用法代码示例。如果您正苦于以下问题:PHP ResponseFactory::view方法的具体用法?PHP ResponseFactory::view怎么用?PHP ResponseFactory::view使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Routing\ResponseFactory
的用法示例。
在下文中一共展示了ResponseFactory::view方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: handle
/**
* Handle the command.
*
* @param ResponseFactory $response
*/
public function handle(ResponseFactory $response)
{
$table = $this->builder->getTable();
$options = $table->getOptions();
$data = $table->getData();
$table->setResponse($response->view($options->get('wrapper_view', $this->builder->isAjax() ? 'streams::ajax' : 'streams::blank'), $data));
}
示例2: handle
/**
* Handle the command.
*
* @param ResponseFactory $response
*/
public function handle(ResponseFactory $response)
{
$tree = $this->builder->getTree();
$options = $tree->getOptions();
$data = $tree->getData();
$tree->setResponse($response->view($options->get('wrapper_view', 'streams::blank'), $data));
}
示例3: view
/**
* Return a new view response from the application.
*
* @param string $view
* @param array $data
* @param int $status
* @param array $headers
* @return \Illuminate\Http\Response
* @static
*/
public static function view($view, $data = array(), $status = 200, $headers = array())
{
return \Illuminate\Routing\ResponseFactory::view($view, $data, $status, $headers);
}
示例4: handle
/**
* Handle the command.
*
* @param ResponseFactory $response
*/
public function handle(ResponseFactory $response)
{
$options = $this->builder->getFormOptions();
$data = $this->builder->getFormData();
$this->builder->setFormResponse($response->view($options->get('wrapper_view'), $data));
}
示例5: show
/**
* Show a single press release
*
* In order to be compatible with the old press releases module the year, month, and day are passed.
* But here is the secret... They don't matter. Only the slug matters
*
* @param PressReleaseRepositoryInterface $repo
* @param $year
* @param $month
* @param $day
* @param $slug
* @return \Symfony\Component\HttpFoundation\Response
*/
public function show(PressReleaseRepositoryInterface $repo, $year, $month, $day, $slug)
{
$press_release = $repo->getBySlug($slug);
return $this->response->view('control_4.module.press_releases::show', compact('press_release'));
}
示例6: handle
public function handle(ResponseFactory $factory)
{
return $factory->view($this->template, $this->data, $this->status, $this->headers);
}