当前位置: 首页>>代码示例>>PHP>>正文


PHP ResponseFactory::view方法代码示例

本文整理汇总了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));
 }
开发者ID:huglester,项目名称:streams-platform,代码行数:12,代码来源:SetTableResponse.php

示例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));
 }
开发者ID:huglester,项目名称:streams-platform,代码行数:12,代码来源:SetTreeResponse.php

示例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);
 }
开发者ID:satriashp,项目名称:tour,代码行数:14,代码来源:_ide_helper.php

示例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));
 }
开发者ID:huglester,项目名称:streams-platform,代码行数:11,代码来源:SetFormResponse.php

示例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'));
 }
开发者ID:bloveless,项目名称:press_releases-module,代码行数:18,代码来源:PressReleasesController.php

示例6: handle

 public function handle(ResponseFactory $factory)
 {
     return $factory->view($this->template, $this->data, $this->status, $this->headers);
 }
开发者ID:Vinelab,项目名称:lucid,代码行数:4,代码来源:RespondWithViewJob.php


注:本文中的Illuminate\Routing\ResponseFactory::view方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。