【发布时间】:2021-05-24 15:35:46
【问题描述】:
我已经用 composer 下载了 bootstrap
composer.json
{
"name": "afern/seocom_login",
"require": {
"twbs/bootstrap": "3.3.7"
}
}
我已经在 index.php 中包含了自动加载文件
<?php
include "./vendor/autoload.php";
?>
<html>
<head>
</head>
<body>
<h2>Hello</h2>
</body>
</html>
引导它下载到供应商文件夹,但它不起作用我想我还必须将此行添加到 html 代码中
<link rel="stylesheet" href=".vendor\twbs\bootstrap\bootstrap.min.css">
我说的对吗?或者有任何方法可以仅使用
进行引导 include "./vendor/autoload.php"
【问题讨论】:
标签: php twitter-bootstrap composer-php