AFS*_*AFS 12 php codeigniter twitter-bootstrap
我正在尝试在codeigniter web上使用bootstrap,但它看起来像找不到引导程序文件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="<?php echo base_url('application/bootstrap/css/bootstrap.min.css');?>" rel="stylesheet">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="<?php echo base_url('application/bootstrap/js/bootstrap.min.js');?>"></script>
Run Code Online (Sandbox Code Playgroud)
我检查了base_url()生成的路径,它是正确的.
Gir*_*ish 15
bootstrap在根位置移动文件夹,因为CI正在理解application文件夹,因为controller虽然应用程序文件夹是按/application/.htaccess文件限制客户端请求的
|-
|-application
|-bootstrap
//and use path as
<?php echo base_url('bootstrap/css/bootstrap.min.css');?>
Run Code Online (Sandbox Code Playgroud)