我的路由设置后没有效果呢?
我的环境是WAMP,PHP的版本是5.5,安装laravel成功后,初始路由可以访问到You have arrived.的页面,但是我新增的路由都没有效果?这是为什么呢?下面是我的路由代码和运行效果。
`<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', function()
{
return View::make('hello');
});
Route::get('/hi', function()
{
return 'hi';
});`
`<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', function()
{
return View::make('hello');
});
Route::get('/hi', function()
{
return 'hi';
});`
2 个回复
qufo
赞同来自:
motecshine - 菜鸟
赞同来自: