컴퓨터/개발

ci 페이징 1 고정

하늘치 2015. 4. 28. 19:46
반응형

MY_pagination.php




// Calculate the total number of pages

$num_pages = ceil($this->total_rows / $this->per_page);


// 하나도 없어도 1페이지

if($num_pages < 1)

$num_pages = 1;


// Is there only one page? Hm... nothing more to do here then.

if ($num_pages == 1)

{

//return '';

}



반응형