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


PHP View::Make方法代码示例

本文整理汇总了PHP中View::Make方法的典型用法代码示例。如果您正苦于以下问题:PHP View::Make方法的具体用法?PHP View::Make怎么用?PHP View::Make使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在View的用法示例。


在下文中一共展示了View::Make方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_update

 public function get_update()
 {
     $layout = Layout::where('studio_id', "=", $this->studio_id)->order_by('size_x', 'asc')->order_by('size_y', 'asc')->get();
     $name = Studio::find($this->studio_id);
     $name = $name->name;
     return View::Make('user.pricing.update')->with('layout', $layout)->with('name', $name);
 }
开发者ID:shainmcalindon,项目名称:boothsgardenstudios,代码行数:7,代码来源:pricing.php

示例2: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $error = Session::get('error');
     $success = Session::get('success');
     $tclass = ClassModel::count();
     $tsubject = Subject::count();
     $tstudent = Student::count();
     return View::Make('dashboard', compact('error', 'success', 'tclass', 'tsubject', 'tstudent'));
 }
开发者ID:hrshadhin,项目名称:school-management-system,代码行数:14,代码来源:DashboardController.php

示例3: get_update

 public function get_update()
 {
     $category = Category::find($this->category_id);
     $organisations = Organisation::get();
     $selected_org = array();
     foreach ($category->organisations as $o) {
         $selected_org[] = $o->id;
     }
     return View::Make('user.categories.update')->with('category', $category)->with('organisations', $organisations)->with('selected_org', $selected_org);
 }
开发者ID:shainmcalindon,项目名称:boothsgardenstudios,代码行数:10,代码来源:categories.php

示例4: get_update

 public function get_update()
 {
     $gallery = Gallery::Find($this->gallery_id);
     $organisations = Organisation::get();
     $selected_org = array();
     foreach ($gallery->organisations as $o) {
         $selected_org[] = $o->id;
     }
     return View::Make('user.galleries.update')->with('gallery', $gallery)->with('organisations', $organisations)->with('selected_org', $selected_org);
 }
开发者ID:shainmcalindon,项目名称:boothsgardenstudios,代码行数:10,代码来源:galleries.php

示例5: get_update

 public function get_update()
 {
     $testimonial = Testimonial::Find($this->testimonial_id);
     $organisations = Organisation::get();
     $selected_org = array();
     foreach ($post->organisations as $o) {
         $selected_org[] = $o->id;
     }
     return View::Make('user.testimonials.update')->with('testimonial', $testimonial)->with('organisations', $organisations)->with('selected_org', $selected_org);
 }
开发者ID:shainmcalindon,项目名称:boothsgardenstudios,代码行数:10,代码来源:testimonials.php

示例6: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $formdata = new formfoo();
     $formdata->class = "";
     $formdata->section = "";
     $formdata->shift = "";
     $formdata->exam = "";
     $formdata->session = "";
     $classes = ClassModel::lists('name', 'code');
     return View::Make('app.tabulationsheet', compact('classes', 'formdata'));
 }
开发者ID:hrshadhin,项目名称:school-management-system,代码行数:16,代码来源:tabulationController.php

示例7: get_update

 public function get_update()
 {
     $page = Page::Find($this->page_id);
     $user = Auth::user();
     $organisations = Organisation::get();
     $selected_org = array();
     foreach ($page->organisations as $o) {
         $selected_org[] = $o->id;
     }
     return View::Make('user.pages.update')->with('page', $page)->with('user', $user)->with('organisations', $organisations)->with('selected_org', $selected_org);
 }
开发者ID:shainmcalindon,项目名称:boothsgardenstudios,代码行数:11,代码来源:pages.php

示例8: get_update

 public function get_update()
 {
     $faq = Faq::find($this->faq_id);
     $faqcategories = Faqcategory::get();
     $organisations = Organisation::get();
     $selected = array();
     foreach ($faq->faqcategories as $c) {
         $selected[] = $c->id;
     }
     $selected_org = array();
     foreach ($faq->organisations as $o) {
         $selected_org[] = $o->id;
     }
     return View::Make('user.faqs.update')->with('faq', $faq)->with('faqcategories', $faqcategories)->with('organisations', $organisations)->with('selected_org', $selected_org)->with('selected', $selected);
 }
开发者ID:shainmcalindon,项目名称:boothsgardenstudios,代码行数:15,代码来源:faqs.php

示例9: showFavorites

 public function showFavorites()
 {
     if (Auth::check()) {
         $favorites = Favorite::where('user_id', '==', Auth::User()->id)->get();
         $posts = array();
         $i = 0;
         foreach ($favorites as $favorite) {
             $posts[i] = Post::where('post_id', '==', $favorite->post_id)->get();
             return Post::where('post_id', '==', $favorite->post_id)->get();
         }
         return View::Make('favorites', ['posts' => $posts]);
     } else {
         return Redirect::to('login_index');
     }
 }
开发者ID:Thormod,项目名称:JusThinkGreen,代码行数:15,代码来源:FavoriteController.php

示例10: get_update

 public function get_update()
 {
     $post = Post::Find($this->post_id);
     $user = Auth::user();
     $categories = Category::get();
     $organisations = Organisation::get();
     $selected = array();
     foreach ($post->categories as $c) {
         $selected[] = $c->id;
     }
     $selected_org = array();
     foreach ($post->organisations as $o) {
         $selected_org[] = $o->id;
     }
     return View::Make('user.posts.update')->with('post', $post)->with('user', $user)->with('categories', $categories)->with('selected', $selected)->with('organisations', $organisations)->with('selected_org', $selected_org);
 }
开发者ID:shainmcalindon,项目名称:boothsgardenstudios,代码行数:16,代码来源:posts.php

示例11: store

 /**
  * Store a newly created resource in storage.
  * POST /users
  *
  * @return Response
  */
 public function store()
 {
     //return View::make('users.create');
     $data = Input::only(['first_name', 'last_name', 'has_access', 'email', 'password', 'password_confirmation']);
     $validator = Validator::make($data, ['first_name' => 'required|min:5', 'last_name' => 'required|min:5', 'email' => 'required|email|min:5', 'has_access' => 'required|has_access|min:2', 'password' => 'required|min:5|confirmed', 'password_confirmation' => 'required|min:5']);
     $newUser = User::create($data);
     if ($newUser) {
         Auth::login($newUser);
         //return Redirect::route('user.create');
         $response = "Ok.";
         return View::Make('users.create')->with('result', $response);
     }
     if ($validator->fails()) {
         return Redirect::route('user.create')->withErrors($validator)->withInput();
     }
     return Redirect::route('user.create')->withInput();
 }
开发者ID:procesorrr,项目名称:ServProgramator,代码行数:23,代码来源:UsersController.php

示例12: get_view

 public function get_view()
 {
     $quotes = Quotation::order_by('id', 'asc')->get();
     return View::Make('user.quotations.view')->with('quotes', $quotes);
 }
开发者ID:shainmcalindon,项目名称:boothsgardenstudios,代码行数:5,代码来源:quotations.php

示例13: verPagina

 function verPagina()
 {
     return View::Make('vista_temarios');
 }
开发者ID:gerson22,项目名称:Curiosity,代码行数:4,代码来源:temarioController.php

示例14: getList

 public function getList()
 {
     return View::Make('mods.list');
 }
开发者ID:helkarakse,项目名称:modpackindex,代码行数:4,代码来源:TestController.php

示例15: search

 public function search()
 {
     return View::Make('post.search');
 }
开发者ID:Thormod,项目名称:JusThinkGreen,代码行数:4,代码来源:PostController.php


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