1) As I correctly understand when using RBAC i have to explicitly check access by calling e.g.
[tt]Yii::app()->user->checkAccess('createPost'))[/tt] in each action. I just wonder if this operation couldn't be performed by CWebUser when 'roles' are set:
array('allow',
'actions'=>array('create'),
'roles'=>array('createPost'),
),
2) I was also wonder about CLinkPager. How to internalize labels first, last etc. ?
3) And the last my idea about CLinkPager:
protected function getPageRange()
{
$currentPage=$this->getCurrentPage();
$pageCount=$this->getPageCount();
$buttonCount=$this->maxButtonCount > $pageCount ? $pageCount : $this->maxButtonCount;
$beginPage = max(array(0, (int) ($currentPage-(($this->maxButtonCount-2)/2))));
if(($endPage = $beginPage + $this->maxButtonCount-1) >= $pageCount)
$endPage = $pageCount-1;
return array($beginPage,$endPage);
}
Maybe i couldn't get the point of original pager, but IMO it is better to navigate when active page is somewere in the middle of pager. Of course I know that i can create extension which will override [tt]getPageRange()[/tt]
Cheers!