Tags » Pagination

[Yii Tips] Contoh Pengaturan CGridView


public function search()
 // @todo Please modify the following code to remove attributes that should not be searched.
$criteria=new CDbCriteria;
 $criteria->compare('email',$this->email,true); 356 more words
Yii Tips

Join the No OFFSET Movement!

Markus Winand from Use The Index, Luke! did it again. He started an exciting battle against one the biggest flaws in the SQL language:

We’ve blogged about this before… 138 more words


Code to Display Subpages Content in Parent Page With Pagination

$ids = array();
$pages = get_pages("child_of=".$post->ID);
if ($pages) {
foreach ($pages as $page) {
$ids[] = $page->ID;
$paged = (get_query_var("paged")) ? get_query_var("paged") : 1; 107 more words
Sanjay Triumph

How to change wordpress odd pagination in numeric pagination

function medas_numeric_posts_nav() {

if( is_singular() )

global $wp_query;

/** Stop execution if there’s only 1 page */
if( $wp_query->max_num_pages <= 1 )

$paged = get_query_var( ‘paged’ ) ? 306 more words


Perennial Favorites: Features for Longform Writers

We often think that our attention spans have grown shorter with the onslaught of digital media, but in fact longform writing — on WordPress.com and beyond — is… 839 more words

General Advice &amp; Pro Tips

Book Design the LibreOffice Way — Part 5: Setting Page Styles in LibreOffice Writer

by Shawn E. Bell //

Building the right structure and setting up simple-to-navigate hierarchy will reduce the complexity of your manuscript, enhance readability, and improve the reader’s experience. 1,033 more words


Here is the Core PHP Pagination functionality.

In main file where you want to show the pagination as below

$x = $_GET["x"] ? $_GET["x"] : $_POST["x"]; 536 more words