Im using laravel 4.
I have a view nest.blade.php
and the corresponding controller NestController.php:
控制器内容:
class NestController extends BaseController {
public function showView()
{
return View::make('nest');
}
}
路由:
路由::get('/nest', 'NestController@showView');
当我转到url/nest时,它不起作用.
显然,我只希望它是没有索引的/nest.php.
我怎么才能解决这个问题呢?
我的访问权限:
IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>