2014-11-04 2 views
2

'읽음'열이있는 테이블이 있습니다. 텍스트가 아닌 그래픽에서 정렬 할 수 있기를 바랍니다. 그러나 그것을 해결할 수는 없습니다. 여기 이미지에서 표 정렬

내가 무엇을 시도했다입니다 :

 The action <a href=" is not defined in controller 
+0

텍스트로 설정하면 작동합니까? –

+0

컨트롤러에서 페이지 매김을 설정 했습니까? –

답변

2

당신은 HTML/이미지 하나가 아닌 매기기/정렬 방법에 탈출 옵션을 추가해야합니다

 <!-- none of these work...--> 

     <th class="read"><?php echo $this->Paginator->sort('read',$this->Html->image("read_no.png", array(
        'width' => "26px", 
        'alt' => "Read", 
        array('escape' => false)))); ?></th> 

     <th class="read"><?php echo $this->Html->link(
      $this->Html->image("read_no.png", array("alt" => "Read")), 
      $this->Paginator->sort('read'), 
      array('escape' => false) 
     );?></th> 

     <th class="read"><?php echo $this->Html->image("read_no.png", array(
        'width' => "26px", 
        'alt' => "Read", 
        'url' => $this->Paginator->sort('read'), 
        array('escape' => false) 
       )); ?> 
     </th> 

내가 같은 오류를 얻을 :

<th class="read"> 
    <?php 
     $imageTag = $this->Html->image("read_no.png", array(
                 'width' => "26px", 
                 'alt' => "Read", 
                ) 
            ); 
     echo $this->Paginator->sort('read', $imageTag, array('escape' => false)); ?> 
</th>