This is my code:
for ($i=0; $i < count($rights); $i++) {
$this->setState($rights[$i], true);
}
Here I am setting the setState dynamically, but I want to get all of states in a list. I did not find any references about this. I only found this:
Yii::app()->user->getState('name');
But this is not helping me. How can I get a list of all states in yii? thx