【发布时间】:2013-12-18 20:38:52
【问题描述】:
我目前正在学习 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');
【问题讨论】: