Newbies question

Hi,

First of all: Great work!

Second:

I'm extending class CLinkPager to set some variables like:

$nextPageLabel and so on.

But when I try to translate them like this, I'm getting a parse error.

public $nextPageLabel = Yii::t('pager', 'Next >');

Message file is in place. Perhaps this is not the smartest way of doing things?

Thanks and regards,

Olaf

If you just want to set the labels, you don't need to extend the class. You can simply do this in your view:



<?php $this->widget('CLinkPager', array(


    'nextPageLabel'=>Yii::t('pager', 'Next &gt;'),


)); ?>


Ah, missed that one  ;)

Thanks for the quick reply!