doushitang4276 2015-11-16 09:58
浏览 60

使用Laravel Collective Html找不到“HTML”类

I've replaced the Illuminate\HTML package with the Laravel Collective version and the composer stuff went fine but the ViewEngine still puts HTML instead of Html into my compiled views. I'm getting the following error

FatalErrorException in a59c8f4e39e21fe743ceaf7a4de9f1da line 14:
Class 'HTML' not found

This is the line it complains about

<?php echo HTML::style(elixir('css/backend.css')); ?>

My config/app.php looks like this

'Form'      => 'Collective\Html\FormFacade',
'Html'      => 'Collective\Html\HtmlFacade',

I'm using the Laravel 5 boilerplate from Rappasoft (https://github.com/rappasoft/laravel-5-boilerplate) and I have a feeling they used the Illuminate class somewhere but I can't find where. I've already edited app/Providers/MacrosServiceProvider.php and app/services/Macro.php.

Any ideas? Thanks!

  • 写回答

1条回答 默认 最新

  • drgdn82648 2015-11-16 12:54
    关注

    Silly mistake. Had to delete cached views in storage/app/framework/views

    评论

报告相同问题?

悬赏问题

  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划