我目前正在学习 Laravel 4。
我试图创建一个非常简单的文章表单,这是我的表单开头代码:
{{ Form::open(array('post' => 'NewQuoteController@quote')) }}
然后在我的NewQuoteController中,我有以下内容:
public function quote() {
$name = Input::post('ent_mileage');
return $name;
}
我一直收到以下错误提示:
Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
可能是非常愚蠢的问题...谢谢。
编辑
这是我在routes.php中的内容。
Route::get('/newquote','NewQuoteController@vehicledetails');
Route::post('/newquote/quote', 'NewQuoteController@quote');
dd(Input::all())
却什么都没有输出? - Antonio Carlos Ribeiro