你是laravel框架的新手,当我使用
时<link rel="stylesheet" href="{{ URL::asset('css/bootstrap.min.css') }}" type="text/css" />
<script src="{{ URL::asset('js/jquery-1.9.1.min.js')}}" type="text/javascript"></script>
在master.blade.php中发现以下错误:
[2014-09-25 06:41:20] local.ERROR: exception
'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in
C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:148
Stack trace:
#0 C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Routing\Router.php(1049):
Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))</div>
#1 C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Routing\Router.php(1017):
Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))</div>
#2 C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Routing\Router.php(996):
Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))</div>
#3 C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Foundation\
Application.php(777): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#4 C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Foundation\
Application.php(747): Illuminate\Foundation\Application>dispatch(Object(
Illuminate\Http\Request))
#5 C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Session\
Middleware.php(72): Illuminate\Foundation\Application->handle(Object(
Illuminate\Http\Request), 1, true)</div>
#6 C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Cookie\Queue.php(47):
Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)</div>
#7 C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Cookie\Guard.php(51):
Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)</div>
#8 C:\xampp\htdocs\laravel\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23):
Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)</div>
#9 C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Foundation\
Application.php(643): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#10 C:\xampp\htdocs\laravel\public\index.php(49): Illuminate\Foundation\Application->run()
#11 {main} [] []
当我删除上面两个css&amp;来自master.blade.php的js引用错误消失了但保留我自己的css和js referance并没有给出错误。因此,任何对此有所了解的人都将受到高度赞赏。
感谢
答案 0 :(得分:0)
谢谢你们......
问题现在解决了。 我在Chrome Developer工具中使用Clockwork进行调试,我发现缺少css和脚本文件所需的其他参考。 @Marcin Nabiałek感谢您提供更好的方法来包含css和脚本文件。 :-)
感谢大家的想法...