I am very new to yii. I am using lesser version of it. While working with it I am getting a weird error. "Undefined variable: pagination"(screen shot-1).
Then I dug into the file, and found in core file ‘CBaseListView.php’ line number 208 throws the error(screen shot-2). This is weird because pagination is defined just 2 lines above. Then I tried to print ‘$this->dataProvider->getPagination()’, this worked well(screen shot-3). But it assigned to pagination variable, it does not work. Then I replaced all $pagination with ‘$this->dataProvider->getPagination()’ and system works well.
So I do not understand what is the actual error. Did I miss something? Please help.
NOTE: I am getting this error in my machine only. For my partner it works fine.