aintgel
(Avescasio)
1
How to resolve error:
Non-static method CFormatter::formatEmail() should not be called statically, assuming $this from incompatible context
<b><?php echo CHtml::encode($data->getAttributeLabel('email')); ?>:</b>
<?php echo CFormatter::formatEmail($data->email); ?>
redguy
(Maciej Lizewski)
2
Yii::app()->formatter->formatEmail($data->email);
aintgel
(Avescasio)
3
I tried your suggestion but I got an CException. What I missed?
Yii::app()->formatter->formatEmail($data->email);
CException
Property "CWebApplication.formatter" is not defined.
redguy
(Maciej Lizewski)
4
sorry, my mistake:
Yii::app()->format
instead of
Yii::app()->formatter
it is standard component for every CApplication descendant so it should work.
aintgel
(Avescasio)
5
Thank so much Sir redguy. 
It now works.