2016-06-06 3 views
1

이 내 main.blade.php 파일HTML 클래스는

<head> 
     <title>App Name - @yield('title')</title> 
     <!-- Latest compiled and minified CSS --> 
     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> 

     <!-- Optional theme --> 
     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> 

     <!-- Latest compiled and minified JavaScript --> 

    </head> 
    <body> 
     <div class="container"> 
      @yield('content') 
     </div> 


     <script 
       src="https://code.jquery.com/jquery-2.2.4.min.js" 
       integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" 
       crossorigin="anonymous"></script> 
     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> 
     {{ HTML::script('js/funciones.js') }}//the html class is not found 
    </body> 
</html> 

입니다

FatalErrorException in a17fd89ebbf444a204167f09a50ec2b0fd529cbe.php line 24: Class 'HTML' not found 

그러나 나는이 URL에 https://laravelcollective.com/docs/5.2/html이라는 URL에 laravell 집단 라이브러리를 추가하기 위해 모든 지침을 따라했습니다. 모든 것이 정확 해 보입니다.

답변

0

{{ HTML::script('js/funciones.js') }}{!! HTML::script('js/funciones.js') !!}으로 바꾸면됩니다. 자세한 내용은 {{ }}{!! !!}의 차이점은 this입니다.

희망 하시겠습니까?

+0

같은 오류! 또는없이 – AFS

+0

당신은 app.php에서''Html '=> Illuminate \ Html \ HtmlFacade :: class'을 가지고 있습니까? – KuKeC

+0

별칭 배열에''Html '=> Collective \ Html \ HtmlFacade :: class' – AFS