system
(system)
1
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
qiang
(Qiang Xue)
2
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 >'),
)); ?>
system
(system)
3
Ah, missed that one
Thanks for the quick reply!