【发布时间】:2016-06-04 22:19:22
【问题描述】:
我使用渲染将刀片转换为字符串并附加为 pdf 内容。
$html = View::make('tpl',compact('aa','bb'))->render();
每当我在刀片中添加引导链接或任何其他链接时,
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
</head>
laravel 会返回给我这个错误:
在非对象上调用成员函数 append_child()
为什么以及如何解决这个问题?我正在使用 Laravel 4.2
【问题讨论】:
标签: php twitter-bootstrap laravel