Hopefully this is an easy question. I was wondering if it were possible to add extra attributes to Yii::app() -> user so it can contain other data other than just username and user id.
I did a quick search, couldn't find anything so I aplogise if its been asked before.
I'm not sure how to do one thing. Id like this state change to happen automatically when the application is run. The idea is it would get some data from the database and alter the state according to this data.
I'm not sure how I would go about this.
Thanks for your help
Chris
[edit]
I should also say I have tried doing this in my writeSession override but it doesn't seem to be altering the state so that it is used by the rest of the application.