Thursday, 15 January 2015

php - Laravel Not getting 404 errors -



php - Laravel Not getting 404 errors -

hi there i'm having problem getting 404 error pages. @ moment blank page no info in it, below code have in 3 different pages, have missing.blade.php page within folder called errors in views folder, can tell me if i'm missing else

// routes file

app::error(function(modelnotfoundexception $e) { homecoming response::view('errors.missing', array(), 404); }); app::missing(function($exception) { homecoming response::view('errors.missing', array(), 404); });

// error 404 page

@extends('layouts.master') @section('page-title') @parent error 404 @stop @section('content') <h1>an error occured 404, page missing</h1> @stop

// controller

public function edit($id) { $product = product::findorfail($id); }

you need add together error handlers to

app/start/global.php

php laravel laravel-4

No comments:

Post a Comment