zf2无法识别CSS库?

时间:2015-04-19 01:27:13

标签: css zend-framework2

为什么我的zf2无法识别css库?

Firefox控制台向我展示了这个:

  

获取http://localhost/pandramon/public/css/css/animate.css [HTTP / 1.1 404未找到229ms]   获取http://localhost/pandramon/public/css/css/font-awesome.min.css

我的代码:

<!-- Le styles -->
<?php echo $this->headLink(array('rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', 'href' => $this->basePath() . '/img/favicon.ico'))
                ->prependStylesheet($this->basePath('css/animate.css'))
                ->prependStylesheet($this->basePath('css/font-awesome.min.css'))
                ->prependStylesheet($this->basePath('css/style.css'))
                ->prependStylesheet($this->basePath('css/bootstrap-theme.min.css'))
                 ->prependStylesheet($this->basePath('css/bootstrap.min.css'))
?>

1 个答案:

答案 0 :(得分:0)

 <?php 
    echo $this->headLink(
        array(
            'rel' => 'shortcut icon', 
            'type' => 'image/vnd.microsoft.icon', 
            'href' => $this->basePath() . '/img/favicon.ico')
        )
        ->prependStylesheet($this->basePath() . '/css/bootstrap-responsive.min.css');

 ?>