问题描述
我刚刚开始使用Laravel.我在控制器方法中,我说:
I'm just getting started with Laravel. I'm in a controller method and I say:
return \View::make('scrape', $data);
然后在scrape.blade.php中,我有:
Then in scrape.blade.php I have:
@extends('layouts.master');
最后,在layouts/master.blade.php中,我有:
Finally, in layouts/master.blade.php I have:
{{ HTML::style('css/bootstrap.min.css') }}
那一切似乎崩溃了,我明白了:
And that where things seem to fall apart and I get:
FatalErrorException:找不到"HTML"类
FatalErrorException in 002eb18bb71fd3ec1de058967b799d49 line 6:Class 'HTML' not found
我做错了什么?感谢您的帮助.
What am I doing wrong? Thanks for your help.
推荐答案
在Google上搜索时,我发现此
Searching on google I found this
在Laravel 5.0中,默认情况下,不再嵌入Html和Form."
"By default in Laravel 5.0, Html and Form are not embedded anymore."
您需要向您的应用程序添加此包.
You need to add this package to you application.
这篇关于Laravel 5:找不到类"HTML"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!