請參見下面的代碼snippt:在CakePHP中,佈局調用兩次當我使用AJAX
<?php
//Sets the update and indicator elements by DOM ID
$paginator->options(array('update' => 'content','indicator' => 'spinner','url' =>$this->passedArgs));
echo $paginator->prev('<< Previous', null, null, array('class' => 'disabled'));
echo $paginator->next('Next >>', null, null, array('class' => 'disabled'));
?>
我的網址爲http://total.projectsjunction.com/artists/portfolios/1
現在我有一個疑難問題。我使用基於AJAX的尋呼與cakePHP但是當我點擊下一頁它調用頁眉和頁腳兩次。
如何我只能調用佈局一次,如果我使用函數兩次與Ajax。
請給予支持。
感謝