page scripts/pagination.phtml:
	
	| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 
 |  
<?php if ($this->pageCount>1){ 
 
	$tmp=Zend_Controller_Front::getInstance();
	$param = $tmp->getRequest()->getParams();	
	$param = array_filter($param);
?>
<div id="paginationControl" align="center">
 
<?php if (isset($this->previous)){
	$param['page']=$this->previous;
?>
	<a href="<?php echo $this->url($param);?>"> Previous</a> 
<?php 
}else{ ?> 
  <span class="disabled">Previous</span> 
<?php } ?> 
 
<?php foreach ($this->pagesInRange as $page){ 
?> 
	 
  <?php 
  $param['page'] = $page;
  if ($page != $this->current): ?>
    <a href="<?php echo $this->url($param); ?>"><?php echo $page; ?></a>
  <?php else: ?>
   	<span class="color" ><?php echo $page; ?></span>
  <?php endif; ?>
   
<?php } ?>
 
 
<?php if (isset($this->next)){ 
 
	$param['page']=$this->next?> 
   <a href="<?php echo $this->url($param); ?>">Suivant</a>
<?php }else{ ?> 
   <span class="disabled">Suivant</span>
<?php } ?> 
</div> 
<?php unset($param);?>
<?php } ?> | 
 page layout/layout.phtml:
	
	| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 
 |  
<?php
header ('Content-type: text/html; charset=iso-8859-15');
?>
<html>
<body>
 
<?php
	echo $this->partial ( 'header.phtml' );
	echo $this->partial ( 'footer.phtml' );
?>
 
</body>
</html> | 
 page layout/header.phtml:
	
	<img src="../images/header.gif"/>
 Et je utilise: $layout->setLayoutPath("...") pour définir layout.
page qui utilise paginator est dans: scripts/aide/index.phtml
Quelle est ma érreur? Merci beaucoup 
						
					
Partager