Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Symfony\Component\HttpKernel\Exception\NotFoundHttpException Laravel 4.1_Php_Laravel - Fatal编程技术网

Php Symfony\Component\HttpKernel\Exception\NotFoundHttpException Laravel 4.1

Php Symfony\Component\HttpKernel\Exception\NotFoundHttpException Laravel 4.1,php,laravel,Php,Laravel,解决了!! 加上 家庭控制器 public function whereDidYouSeePost() { return View::make("WDS"); } 路线 Route::post("whereDidYouSee", array( "as" => "whereDidYouSee", "uses" => "HomeController@whereDidYouSeePost" )); 我正在尝试发布表单,但每次出现此错误时: Symfony\C

解决了!! 加上

家庭控制器

public function whereDidYouSeePost() {
    return View::make("WDS");
}
路线

Route::post("whereDidYouSee", array(
    "as"   => "whereDidYouSee",
    "uses" => "HomeController@whereDidYouSeePost"
));
我正在尝试发布表单,但每次出现此错误时:

Symfony\Component\HttpKernel\Exception\NotFoundHttpException
但是当我更改根目录并将表单复制到我的主文件时,我的意思是../public一切都很好。我该怎么办

多谢各位

这是我的密码

家庭控制器

public function whereDidYouSee() {
    return View::make("WDS");
}
路线

Route::get("whereDidYouSee", array(
    "as"   => "whereDidYouSee",
    "uses" => "HomeController@whereDidYouSee"
));
形式


这是因为表单URL是相对的,所以根据路由名称生成它,如:

{{  Form::open(array('route' => 'whereDidYouSee')) }}
   //bla bla bla
{{ Form::close() }}

这也是一个解决方案,但我在HomeController文件中添加了一个post方法。非常感谢。
{{  Form::open(array('route' => 'whereDidYouSee')) }}
   //bla bla bla
{{ Form::close() }}