Simple as that. I have placed this action in my extension folder like:
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.