为什么我的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'))
?>
答案 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');
?>