Yii Clinkpager displays next 3 buttons and last 3
<p>guys!
I need some help. I need display pagination in the following view:
1 2 3 ... 98 99 100.
How can I do that in Clinkpager?
I have tried override method createButtons, but really I don't know what conditions :</p>

<pre><code>   for($i=$beginPage;$i&lt;=$endPage;++$i){

            if($this-&gt;maxButtonCount &lt; $pageCount){

                $next = $currentPage + 3;
                if($currentPage &lt;= $next || $currentPage &gt;= $pageCount-3){
                    $buttons[]=$this-&gt;createPageButton($i+1,$i,$this-&gt;internalPageCssClass,false,$i==$currentPage);
                }
            }else{
                $buttons[]=$this-&gt;createPageButton($i+1,$i,$this-&gt;internalPageCssClass,false,$i==$currentPage);
            }



    }
</code></pre>

<p>But it not work.</p>