本文整理汇总了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);
}
示例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'));
}
示例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);
}
示例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);
}
示例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);
}
示例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'));
}
示例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);
}
示例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);
}
示例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');
}
}
示例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);
}
示例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();
}
示例12: get_view
public function get_view()
{
$quotes = Quotation::order_by('id', 'asc')->get();
return View::Make('user.quotations.view')->with('quotes', $quotes);
}
示例13: verPagina
function verPagina()
{
return View::Make('vista_temarios');
}
示例14: getList
public function getList()
{
return View::Make('mods.list');
}
示例15: search
public function search()
{
return View::Make('post.search');
}