當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。