图像和CSS不显示在codeigniter(wamp)

时间:2017-11-01 05:27:29

标签: php css image codeigniter wamp

我对这些家伙有点新意,所以请耐心等待。我正在尝试通过代码点火器WAMP (localhost)中的视图加载一些页面。我的CSS和图像没有显示的原因。我在网上看到的大部分内容似乎与htaccess问题有关。所以这就是:

# Begin cache control #
ExpiresActive on
ExpiresActive off
<FilesMatch ".*">
Header unset Cache-Control
Header unset Expires
Header unset Last-Modified
FileETag None
Header unset Pragma
</FilesMatch>
# End cache control #
# Begin password protection #
#AuthName "Password Protected"
#Require valid-user
#AuthUserFile "/home/users/web/b1167/ipg.konec5/.htpasswd"
#AuthType basic
# End password protection #


<IfModule mod_rewrite.c>
RewriteEngine On
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the 
robots.txt file
RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

#DirectoryIndex index.php

这是查看文件的快照:

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php echo link_tag('stylesheets/about.css'); ?>


<div id="team-group"> <img class="img-thumbnail" width="154" height="86" 
src="<?= base_url('/images/Erickson.png') ?>" data-toggle="tooltip" 
title="Erickson Joseph: Web Developper & Co-Founder" >
    <br>     

</div>

这里是“关于” PAGE

的控制者
    <?php defined('BASEPATH') OR exit('No direct script access allowed');

    class About extends CI_Controller {


    public function index()
    {


        $this->load->helper('html');
        $this->load->view('templates/header');
        $this->load->view('about');
        $this->load->view('templates/footer');
    }

}

希望这里有足够的信息可以显示我做错了什么?请告诉我。

感谢您的任何意见。

0 个答案:

没有答案