Monday, 15 March 2010

php - Laravel 4 - Catch Error exceptions not working -



php - Laravel 4 - Catch Error exceptions not working -

i have next code in controller:

public function edit($id) { seek { $post = post::findorfail($id); $this->layout->content = view::make('edit.press'); } catch(modelnotfoundexception $e) { homecoming redirect::to('press'); } }

when go page /press/1/edit & id 1 not in there exception error : modelnotfoundexceptio , laravel error pages shows , not redirecting press page again? why please help me

php laravel laravel-4

No comments:

Post a Comment