2016-05-02 24 views
0

我试图用Zend Framework 2的分页替换为使用Twitter Boostrap的分页样式。尽管我改变了风格,但有些元素已关闭,但我不知道为什么。这里是我的代码:在Zend Framework 2中更改样式分页

<nav> 
<ul class="pagination"> 
<?php if ($this->pageCount): ?> 
<!-- Previous page link --> 
<?php if (isset($this->previous)): ?> 
    <li class="previous"><a href="<?php echo $this->url($this->route, array('page' => $this->previous)); ?>"> 
    <span aria-hidden="true">&laquo;</span></a></li> 
<?php else: ?> 
    <li class="previous disabled">&laquo;</span> 
<?php endif; ?> 

<!-- Numbered page links --> 
<?php foreach ($this->pagesInRange as $page): ?> 
    <?php if ($page != $this->current): ?> 
    <li class="active"><a href="<?php echo $this->url($this->route, array('page' => $page)); ?>"> 
     <?php echo $page; ?> 
    </a></li> 
    <?php else: ?> 
    <?php echo $page; ?> 
    <?php endif; ?> 
<?php endforeach; ?> 

<!-- Next page link --> 
<?php if (isset($this->next)): ?> 
    <li class="next"><a href="<?php echo $this->url($this->route, array('page' => $this->next)); ?>"> 
    <span aria-hidden="true">&raquo;</span></a></li> 
<?php else: ?> 
    <li class="next disabled">&raquo;</li 
<?php endif; ?> 
<?php endif; ?> 
</ul> 
</nav> 

如果有帮助,这里是我想说的截图。

enter image description here

正如你所看到的,这些元素都关闭。任何帮助,将不胜感激。

谢谢!

回答

0

从来没有解决它,没有使用正确的属性。