public function findActiveItem()
    {
        foreach ($this->items as $index => $item) {
            $index++;

            if ($item->number == $this->currentPage) {
                $item->active = true;
            }
        }
    }
public function findActiveItem()
    {
        foreach ($this->items as $index => $item) {
            $index++;

            if ($item->number == $this->currentPage) {
                $item->active = true;
            }
        }
    }
public function findActiveItem ( ) { foreach ( $ this -> items as $ index => $ item ) { $ index ++ ; if ( $ item -> number == $ this -> currentPage ) { $ item -> active = true ; } } }
Find and mark current page item.

@return void
Find and mark current page item .