I am using Yii-user module for authentication and I am trying to filter some output with user id.
class WordsController extends Controller
{
...
private $userObject = Yii::app()->getModule('user')->user();
...
}
This code shows this error:
Parse error: syntax error, unexpected '(', expecting ',' or ';' in ...
I don't have an idea what is wrong.
Here is the link of the module https://code.google.com/p/yii-user/wiki/API